(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; ibatis 连接 oracle的包哪里有?? oracle有条件删除重复数据 oracle 11gR1版本的dmp 文件如何导入 oracle 9.2 的数据库中 数据库复制的问题 如果在oracle 中显示sqlserver的数据库?就如同在sqlserver中建与oracle的链接一样的功能 导出oracle9i(跪求答案) 求select语句,条件是分段可变的 为什么 OracleService* 服务不能启动? 谁能提供一个创建复杂视图的语句,给俺参考一下? 新学oracle各种问题,net service 配置 急问:奇怪的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;