sybase 脚本建表和删除表

脚本方式删除表

if exists (select 1 from sysobjects
    where id = object_id('users') and type = 'U')
    drop table users
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

posted @ 2017-04-15 14:17  夏天的西瓜君  阅读(2324)  评论(0编辑  收藏  举报