摘要: 这些都是工作中遇到的问题,后来通过网上查找积累下来的。查找一个数据库有多少个表?select count(*) from sysobjects where xtype='U'查找一个数据库下所有表的表名select name from sysobjects where xtype='U'SELECT name FROM sysobjects WHERE xtype = 'U' Or xtype = 'S' 查找一个表的结构select * from information_schema.columns where table_na 阅读全文
posted @ 2012-07-02 11:05 山水中华 阅读(172) 评论(0) 推荐(0) 编辑