摘要: 查询是否有外键: select object_name(a.parent_object_id) 'tables' from sys.foreign_keys a where a.referenced_object_id=object_id('[表名]') 更改主键类型: ---删除原主键 Alter table base_log Drop PK__BASE_LOG__4364C88276... 阅读全文
posted @ 2018-03-06 10:18 start逍遥 阅读(451) 评论(0) 推荐(0) 编辑