如何查询用户下面的所有表名

第一种,查询当前用户的所有表名称,直接执行下面sql获得
select * from USER_TABLES

第二种,查询其他用户的所有表名称,直接执行下面sql获取
select * from sys.ALL_TABLES  where OWNER='BCP'
select * from dba_tables where owner='BCP'

猜你喜欢

转载自primitive123.iteye.com/blog/2033434