你可以在建表之前先运行Drop table tablename
解决方案 »
- 问一条查询语句哦,会的人帮帮忙吧....
- 关于Oracle数据的监控!
- 谁用过OCI涵数,近来看看.
- 我是oracle新手,装了oracle817后,现在想重新装一遍,但是为什么找不到oracle的卸载程序啊,请问该怎么样卸载啊
- 用函数DateAdd("d",1,date)得到的日期怎样用于WHERE语句中?
- 提取前几行数据
- 急!!!如果备份和恢复ORACLE 8.0.5数据库
- 高分求select语句
- C#调用Oracle存储过程出错
- oracle中select field1 to var1 from table1 where condition出错(马上结帐)
- 关于oracle9i的配置问题
- 请问9i 的 sqlplus是否必须用system登录,不能用sysman 或者 sys吗?
s integer;
Begin
select count(*) into s
from user_tables
where table_name='table_name'; if s>0 then
execute immediate 'drop table table_name';
end if;
create table ....;end;
不是有create or replace table ...吗?????
如果存在相同的对象它会自动replace撒,不是更简洁吗
Declare
s integer;
Begin
select count(*) into s
from user_tables
where table_name='table_name'; if s>0 then
execute immediate 'drop table table_name';
end if;
create table ....;end;
str varchar2(50);
Begin
begin
str:='drop table mytable';
execute immediate str;
exception
when others then
goto label;
end;
<<label>>
str:='create table ....';
execute immediate str;
end;
/