有相关sql 资料,麻烦发到油箱,[email protected] 谢谢

解决方案 »

  1.   

    就直接create table即可
    如果table已经存在,就会报错
    如果没有,就会建表
      

  2.   

    if not exists (select 1
                from  sysobjects
               where  id = object_id('abc')
                and   type = 'U')
    create table abc (
       aa                  int                  not null,
       bb                  smallint             not null,
       cc                   bigint               not null,
       dd                  smallint             not null,
       ee                  smallint             null,
       ff                  bigint               null default rand()*10000,
       gg                 text                 null,
       tt                varchar(100)         null,
       constraint PK_ABC primary key  (aa, bb, cc, dd)
    );
    我直接在程序中用一个sql 语句怎么弄,上面是在sqlserver 下是没问题的
    以前没用过oracle,麻烦多多,很多类型都不一样了
    用oracle 的练机帮助,用的很不爽。好象这个随机数还不管用。
    上面这段如何弄到oracle上来