select TABLE_name from all_tables WHERE owner='SYS';
/*
Oracle中:
select TABLE_name from all_tables WHERE owner='数据用户名'
就显示出了该用户可以访问到的表了
MySQL中:
show tables;
SqlServer中
select * from sysobjects where xtype ="U"
*/
select table_name from user_tables;
select * from tab where tabtype ='TABLE';
本文介绍了在Oracle、MySQL和SqlServer等不同数据库系统中查询用户可访问表的方法,包括使用特定SQL语句来获取表名。

被折叠的 条评论
为什么被折叠?



