摘要: /*1.查询SQLSERVER中的所有数据库*/use mastergoselect * from sysdatabases where dbid>4/*where条件用来去掉系统数据库*/go/*2.查询SQLSERVER中的所有数据库(存储过程)*/exec sp_helpdb/*3.查询指定数据库中的表*/use 数据库名goselect * from sysobjects where xtype='u'/*where条件用来去掉系统表*/go/*4.显示当前数据库所有表的详细信息*/use 数据库名goSELECT表名=case when a.colorder=1 阅读全文
posted @ 2012-06-11 01:26 水草肃 阅读(152) 评论(0) 推荐(0) 编辑