select name
from sysobjects
where id=(select cdefault
from syscolumns
where name='字段名' and id = (select id
from sysobjects
where name = '表名'))
...全文
1748打赏收藏
新手请教几个关于GridView的小问题?
1.同一页面写了多个GridView,是应该写多个bind()还是一个bind()? 2.有什么方法可以实现,改变主表某一列的TableId值,同时让副表的TableId列的值都改变(之前TableId列设置的是默认值为2)? 之前在网上看了一种SQL语句的方法,是先去获取约束名,再删除掉约束,然后建立新的约束。这种方法我用起来总有点小问题,我想知道有没有什么别的方法? 获取默认约束名 select name from sysobjects where id=(select cdefault