sql语句,怎么查看一个表中的所有约束
时间:2015-05-10 16:53:18
收藏:0
阅读:322
sql语句,怎么查看一个表中的所有约束,比如,一个student表,有唯一,外键,主键,用sql语句怎么查看student表中的所有约束呢?
select * from sysobjects where parent_obj in(
select id from sysobjects where name=‘student‘)
原文:http://www.cnblogs.com/cbboys/p/4492323.html
评论(0)