use test
go
if exists table student is not null
else
drop table student
go
create table database_name.schema_name.table_name
(属性1 字符类型 约束,
属性2 字符类型 约束....
)
go
insert into table_name values ('属性1’,‘属性2’,......)
--插入数据
增加字段:alter talbe 表名 add 字段名 类型(宽度[,小数位] )
修改字段:alter table 表名 alter column 字段名 类型(宽度[,小数位] )
重命名字段:alter table 表名 rename column 字段名 TO 新字段名
删除字段:alter table 表名 drop column 字段名