`
liss
  • 浏览: 829172 次
  • 性别: Icon_minigender_1
  • 来自: 广州
社区版块
存档分类
最新评论

获得数据库中所有的表

阅读更多

在数据库中一般都会有一个系统表来记录下所有的用户表或视图,存储过程等等的.名字就叫SYSOBJECTS.所有要查询出所有的表可以用以下语句:

SQL2000:

Select * From Sysobjects where xtype =   ' U或 V 或 P '

ACCESS:

SELECT * From MSysObjects Where Flags = 0 And Type=1

ORACLE:

Select * From Tab;

MySQL:

SELECT * FROM information_schema.`TABLES` T where T.table_schema='udb_liss'

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics