在PLSQL 中我用select * from   user_tables可以查询到当前用户下的存在的表,怎样查询到这个数据库所有用户下存在的表名。

解决方案 »

  1.   

    select * from all_tables;
      

  2.   

    select * from all_tables
    where owner = upper('&owner')
      

  3.   

    select * from all_tables
    where owner = upper('username')
      

  4.   

    select * from dba_tables
    不过你要是DBA才可以
    .
      

  5.   

    ALL_TABLES describes all relational tables accessible to the user. To gather statistics
    for this view, use the SQL ANALYZE statement.
    Related Views
     DBA_TABLES describes all relational tables in the database.
     USER_TABLES describes all relational tables owned by the current user. This
    view does not display the OWNER column
      

  6.   

    select * from sys.user_tab_columns我就是这样做的