获取表中各字段信息: select * from syscolumns where id=object_id('表名') 获取表中主键的方法: select * from sysobjects where xtype ='pk' 外键同理举例:查询表'cdt_1x_basic'的字段信息(包括主键信 Read More
posted @ 2012-11-04 18:34 韬韬韬你羞得无礼 Views(264) Comments(0) Diggs(0) Edit