当前位置: 代码迷 >> PowerDesigner >> 如何让powerdesigner生成sql语句的时候不带用户名
  详细解决方案

如何让powerdesigner生成sql语句的时候不带用户名

热度:6280   发布时间:2013-02-26 00:00:00.0
怎么让powerdesigner生成sql语句的时候不带用户名?
怎么让powerdesigner 生成sql语句的时候 不带用户名?


看下面这个:红色这些都不想要啊,不然不通用啊
create table darlingdd.table1  (
   ID                   NUMBER                          not null,
   name           VARCHAR2(256)                   not null,
   password          VARCHAR2(256),
   CREATETIME           NUMBER                          not null,
   UPDATETIME           NUMBER                          not null,
   constraint PK_darlingdd_ID primary key (ID)
         using index
       pctfree 10
       initrans 2
       storage
       (
           initial 64K
           minextents 1
           maxextents unlimited
       )
       tablespace USERS
        logging
)


------解决方案--------------------------------------------------------
设置Table properties的属性中OWNER 为NONE,生成的时候就不会带有用户名了。

你这种像是从PL/SQL从ORACLE中弄来的,Powerdesigner默认建表的话好像是没有的。
------解决方案--------------------------------------------------------
或者直接删除PowerDesigner中的USER信息,生成SQL时就不会有问题了。
------解决方案--------------------------------------------------------
设置Table properties的属性中OWNER 为NONE
  相关解决方案