(200分,分两次给)急救!!!如何在oracle里用SQL语句判断某个表是否存在 查系统表,count一下,select count(*) from SYS.ALL_TABLE where table_name = 'yourTableName' 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 查Testselect count(*) from all_tables where table_name = UPPER('Test'); select * from tabs where table_name = 'TableName' select count(*) from all_tables where table_name='your table name'; 呵呵,都可:select count(*) from tab where table_name='Test'; //是表tabselect count(*) from all_tables where table_name = UPPER('Test'); //表名在系统表中是大写 根据数据字典来查注意以下区别:dba_tables:数据库中所有的表all_tables:当前用户可以访问到的所有的表user_tables:当前用户自己创建的表 补充user_objects; cat; SQL同一张表,名称、类型相同,重量相加 求一个sql,谁能帮忙看下!!!!! 怎么通过Oracle的DBLink同步Informix中的数据 oracle字符串中文内容替换的问题! orcle数据链路问题,请教了。急 求教:删除重复列 pl/sql中插入之前如何检查该记录是否已经在表中? 数据库查询中,如果某个连接查询,查询计划是嵌套查询,那么外部循环是大表好还是小表好? OracleOraHome92TNSListener的问题 用存储过程动态创建触发器来记录表数据的更新,巨头疼的问题,高分求解!!! 急问:奇怪的sql问题 这样的触发器怎么写?
select count(*) from all_tables where table_name = UPPER('Test');
select count(*) from tab where table_name='Test'; //是表tab
select count(*) from all_tables where table_name = UPPER('Test'); //表名在系统表中是大写
注意以下区别:
dba_tables:数据库中所有的表
all_tables:当前用户可以访问到的所有的表
user_tables:当前用户自己创建的表
user_objects;
cat;