码迷,mamicode.com
首页 > 数据库 > 详细

查询数据库

时间:2018-04-12 13:40:17      阅读:187      评论:0      收藏:0      [点我收藏+]

标签:type   cti   数据库   where   ase   sele   tables   ble   use   

select * from sysobjects  --查询所有信息
SELECT Name FROM Master..SysDatabases ORDER BY Name  --查询所有数据库名字
SELECT name FROM sysobjects WHERE xtype=U --查询数据库表(先引用数据库[use])
select * from sys.tables  --查询数据库表名
select * from Dictionary  -- 查询表中数据

 

查询数据库

标签:type   cti   数据库   where   ase   sele   tables   ble   use   

原文地址:https://www.cnblogs.com/enych/p/8806879.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!