sqlserver查询表是否有某个字段?
解决方法:
sqlserver:
Select * from syscolumns Where ID=OBJECT_ID('表名');
mysql:
SELECT * FROM information_schema.COLUMNS where TABLE_NAME ='表名';
本文地址:http://www.yayihouse.com/yayishuwu/chapter/1167
sqlserver查询表是否有某个字段?
解决方法:
sqlserver:
Select * from syscolumns Where ID=OBJECT_ID('表名');
mysql:
SELECT * FROM information_schema.COLUMNS where TABLE_NAME ='表名';
本文地址:http://www.yayihouse.com/yayishuwu/chapter/1167
有建议,请留言!