问题一:介绍一个编辑SQL语句的编辑器。
写字板
问题二:我做好的SQL文件,一般怎么调用。
到sqlplus里运行
问题三:在过程文件中,如何判断一个表是否存在。
select count(*) into :v from tab where tname = '大写';
写字板
问题二:我做好的SQL文件,一般怎么调用。
到sqlplus里运行
问题三:在过程文件中,如何判断一个表是否存在。
select count(*) into :v from tab where tname = '大写';
@c:\demosql.sqlselect count(*) into n from all_tables where owner='USERNAME' and table_name='TBNAME';
if n>0 then
存在
else
不存在
end if
....
strSQL = "begin @c:\demosql.sql end;"
然后执行该sql语句。
我也不知道行不行,你试一下。