怎么通过命令查看自己已经创建的表?

解决方案 »

  1.   


    --1.sys用户登录
    select table_name
      from dba_indexes 
      where table_owner = '用户名'; --2.所有用户
    select * from tab;
      

  2.   

    select dbms_metadata.get_ddl('TABLE','TABLE_NAME','USER_NAME') from dual;参数全部大写。另外,通过命令查看存储过程和函数:select text from all_source where name=upper('object_name');
      

  3.   

    2楼正解select * from tab;  
    又学了一招!
      

  4.   

    我一直用这个:
    先查看一下表结构: desc user_tables;
    然后查表名就行了
    select table_name from user_tables;
      

  5.   

    select * from tab where tabtype='TALBE';
    或者是
    select * from user_tables;
    或者是
    select count(*) from all_tables where owner='数据库用户名' ;
      

  6.   

    select table_name from user_tables
    一般情况下,用这个就可以了吧?
      

  7.   

    select * from user_tables
      

  8.   

    select table_name from user_tables;