查看当前表是否存在,如果存在删除该表
use 数据库名
go
if exists(select * from sysobjects where name='表明')
drop table 表名
创建表
create table 表名
(
userid int identity,标识列
usercode numeric(18,0),not null,不为空 18位
username varchar(50) 可为空
)
go
删除表
drop table 表名