SQl语句收集
发布时间:2009/4/2 20:22:55 作者: 阅读:699
广告:
SELECT constraint_name
FROM information_schema.table_constraints
WHERE (constraint_type = 'primary key') AND (table_name = 'person')
得到约束名:aaaaaperson_PK
alter table tb
drop PK_tb --主键约束名
alter table person drop column sfz
exec sp_help '表名'就可以看到表结构
insert newtable select * from talbnemae 建表
mssql复制新表带数据 SELECT * INTO kfzlhao FROM kfzl
-------------------------------------------------------------------------
广告:
相关文章