请问如何用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; Problem with Oracle RAC(scan) with DRCP pl/sql求查询语句 TNS-12500: TNS:监听器未能启动专用的服务器进程 关于一个COUNT判断操作的问题 复杂的数据去重问题 新手求教oracle同比和环比sql语句 in 和 exists二者区别的另类解释 问一下web页面查询翻页操作所带来的数据库效率问题 第一次,不知所以然 凭证检索失败 急,在线等待 如何改一个用户的密码 关于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;