--1.sys用户登录 select table_name from dba_indexes where table_owner = '用户名'; --2.所有用户 select * from tab;
select dbms_metadata.get_ddl('TABLE','TABLE_NAME','USER_NAME') from dual;参数全部大写。另外,通过命令查看存储过程和函数:select text from all_source where name=upper('object_name');
2楼正解select * from tab; 又学了一招!
我一直用这个: 先查看一下表结构: desc user_tables; 然后查表名就行了 select table_name from user_tables;
select * from tab where tabtype='TALBE'; 或者是 select * from user_tables; 或者是 select count(*) from all_tables where owner='数据库用户名' ;
select table_name from user_tables 一般情况下,用这个就可以了吧?
--1.sys用户登录
select table_name
from dba_indexes
where table_owner = '用户名'; --2.所有用户
select * from tab;
又学了一招!
先查看一下表结构: desc user_tables;
然后查表名就行了
select table_name from user_tables;
或者是
select * from user_tables;
或者是
select count(*) from all_tables where owner='数据库用户名' ;
一般情况下,用这个就可以了吧?