select name from sysobjects where type='s' or type='u'// 
得到所有的表,包括系统表
然後你用循環判斷是否有你需要的表

解决方案 »

  1.   

    我用
    select name from sysobjects where type='s'
    select name from sysobjects where type='u'
    select * from sysobjects where type='u'
    都试过,结果都是错误:
    java.lang.NullPointerException-----------------
    我在SQLplus中用过:
    select table_name from user_tables where table_name='MyTable';
    如果有表“MyTable”,就能够提取出来。说明select语句没错。但是为什么在jsp里面rs就为空呢?