请问如何用sql语句判断一个表是否存在呢?急! select table_name from user_tables where table_name='tablename'; 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select * from tab where table_name='your_table'; select table_name from user_tables where table_name='tablename';不存在就自然没记录啊 不行啊,你们在sql plus中试过吗? 表名要大写。而且要用tom用户登录,才可以用user_tables视图。当然了,你也可以dba_tables视图,单要制定owner_name='TOM' sorry:select * from tab where tname='your_table'; select * from tab where tname='YOUR_TABLE';你的表名一定要大写。 CONNECT INTERNALSELECT OWNER,TABLE_NAME FROM DBA_TABLES WHERE OWNER='tom' and table_name='table'; select table_name from user_tables where table_name='YOUTABLE'; select table_name from all_tables where owner='USERNAME' and table_name='YOURTABLE'; desc lemotan.pets;其中lemotan是你的方案名字,pets是你的表名字。 在SQL*PLUS中先连到该用户然后用命令:desc tablename; 【提问】请教建立远程表空间的事 literal does not match format string 报错 坐等大牛 mssql存储过程转成ORACLE 关于oracle.jdbc.driver包的问题... 请教exists和in oracle 数据库首选身份证明问题 请教:如何解决困扰我多时的ORACLE的日期问题? 为什么我创建ORACLE数据库特别慢? 要20多分钟? 请问oracle中的游标可否定位??? 关于ORACLE解析日志方面的问题 如何改一个用户的密码 关于sequence的问题!!!!!
select * from tab where tname='your_table';
你的表名一定要大写。
SELECT OWNER,TABLE_NAME FROM DBA_TABLES WHERE OWNER='tom' and table_name='table';
其中lemotan是你的方案名字,pets是你的表名字。
然后用命令:desc tablename;