问题一:介绍一个编辑SQL语句的编辑器。
   写字板
问题二:我做好的SQL文件,一般怎么调用。
   到sqlplus里运行
问题三:在过程文件中,如何判断一个表是否存在。
   select count(*) into :v from tab where tname = '大写';

解决方案 »

  1.   

    sql*plus里面执行
    @c:\demosql.sqlselect count(*) into n from all_tables where owner='USERNAME' and table_name='TBNAME';
    if n>0 then
    存在
    else
    不存在
    end if
    ....
      

  2.   

    判断表存在只有这种方法吗?还有其它的吗?如果我想在程序中执行SQL文件,可以吗?
      

  3.   

    你在程序中
    strSQL = "begin @c:\demosql.sql end;"
    然后执行该sql语句。
    我也不知道行不行,你试一下。