当前位置:Gxlcms > 数据库问题 > sybase 脚本建表和删除表

sybase 脚本建表和删除表

时间:2021-07-01 10:21:17 帮助过:27人阅读

脚本方式删除表

if exists (select 1 from sysobjects
    where id = object_id(‘yxm‘) and type = ‘U‘)
    drop table yxm
go

建表

create table users(
  id           integer      not null,
  cname        char(50)    null,
  url            char(50)    null,
  father_id         integer    null,
  row_select_flag   char(1)         default ‘0‘ null,
  seqid          char(3)         null,
  memos           varchar(120) null
)
go

sybase 脚本建表和删除表

标签:integer   exists   tab   删除   varchar   建表   char   mem   sts   

人气教程排行