SQL>select table_name,tablespace_name from all_all_tables;
SQL>where table_name='AA';

解决方案 »

  1.   

    SP2-0734: 未知的命令开头 "where tabl..." - 忽略了剩余的行。好像第一句可以执行,第二句不行啊,但是第一句是列出所有表啊,我想找一个特定的表名啊。把中间的分号改成逗号也没有用啊
      

  2.   

    比如说我的表空间名为 bb要找一个名为aa的表怎么找?我用8i ,817
      

  3.   


    select * from all_tables where 
    table_name ='aa' and tablespace_name='bb'
      

  4.   

    select * from user_tables where table_name='AA' and tablespace_name='BB';
    如果权限足够,还可以
    select * from all_tables where table_name='AA' and tablespace_name='BB';
    select * from dba_tables where table_name='AA' and tablespace_name='BB';
    ....
      

  5.   

    用这个:
    select table_name
      from all_tables
     where lower(table_name) = '%aa%'
       and lower(tablespace_name) = '%bb%';
    记得加分哦。
      

  6.   

    to Aarcon_Chen(凌霄)我用了你的方法,不是我要的啊,我要查找一个记录就可以了,怎么出来了一大堆啊
    谁会这个呢?告诉我吧,我等了一个下午了,天哪!!
      

  7.   

    select table_name
      from all_tables
     where table_name = 'AA'
       and tablespace_name = 'BB';
    我这样居然成功了!!!!!