用pl/sql:select count(*) into variable from DBA_TABLES where table_name='youname';
if variable > 0  --存在这个表
then
drop table youname;
create table youname(.....);
else -- 不存在
create table youname(.....);
end if电子书www.oradb.net去看看。

解决方案 »

  1.   

    下载到ftp://bookdown:[email protected],我的FTP
      

  2.   

    呵呵,那是当然不行了,ms sql server只是个小玩意而已。
    楼上的方法可以检测是否存在某个表,注意表名大写
      

  3.   

    转:
    下面是一些电子书籍的下载地址
    http://www.nci.ac.cn/cgi-bin/view.cgi?forum=2&topic=65
    http://www.pcbookcn.com/content.asp?Nclassid=22&classid=3 
    http://superexam.myetang.com/ocp/index.html
    http://soft.269.net/SoftWareList.asp?ClasstreePos=24
    http://www.oradb.net/book.htm 
    http://flying.swpi.edu.cn/books/dnwl/cxsj/oracle/index.html
    http://easycome.myrice.com/bookstore/oracle.htm
    http://www.kl.gz.cn/~hal/1-1-8.htm
    http://www.ebooksou.com/search_leibie.asp?lei=4-2&word=Oracle 
    http://www.eng.stu.edu.cn/ebook/type/database.asp?did=0203
    http://www.helpwork.net/
    http://www.powerba.com/develop/database/oracle/index_12.htm
      

  4.   

    to dajian2000(我学Oracle我爱C++) 试过了,对现有表好用,但好象对临时表不行
    而且‘into variable ’pl/sql好象不认
      

  5.   

    ORACLE中,单引号中的东东都要大写.