数据库里可以用sql语句判断是否存在某个表么? SQL Server 里有,不知道Oracle里有没有相关语法:if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[表名]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select count(*) from user_tableswhere table_name like '表名' conn / as sysdbaselect owner,table_name from dba_tables where table_name ='NAME'; select 1 into v_exist from dual where exists(select 1 from user_tables where table_name like 'tablename');if v_exist=1 then ...else ..end if; sql语句优先级问题 线程同步使用sem_t信号量,为什么用pstack会使进程sleep? ORACLE占空间问题 紧急问题 update语句优化 ORA-16009: remote archive log destination must be a STANDBY database 日期格式对于内部缓冲区过长 各位大侠请帮帮助我这个初学者吧 急急急急急....我的存储过程错在哪儿???各位,能帮我看一下吗? 快照的问题 csdn社区Oracle电子杂志征稿启示 急问各位:我想在存储过程中执行一批处理文件,这个存储过程怎么写呀
where table_name like '表名'
select owner,table_name from dba_tables where table_name ='NAME';
into v_exist
from dual
where exists(select 1 from user_tables where table_name like 'tablename');if v_exist=1 then
...
else
..
end if;