当前位置:网站首页>Oracle with as ora-00903: invalid table name multi report error
Oracle with as ora-00903: invalid table name multi report error
2022-07-04 19:25:00 【kjshuan】
There is a problem today with as Error will be reported if used for many times !!
I can't check a lot of information online !
order Is a reserved word , If you use it carelessly order This word can only be enclosed in double quotation marks "order" operation
subject This is it


The first time I tried to use a single table with as The normal operation !!
with sss as (select cc.cname,cc.cid abcd,ss.sid from course cc,sc scc,student ss where cc.cid=scc.cid and scc.sid=ss.sid and ss.sid=01)
2 select * from sss
3 ;CNAME ABCD SID
---------- ---------- ----------
mathematics 02 01
Chinese language and literature 01 01
English 03 01
with t as (select cc.cname,cc.cid abcd,ss.sid from course cc,sc scc,student ss where cc.cid=scc.cid and scc.sid=ss.sid and ss.sid!=01)
2 select * from t;CNAME ABCD SID
---------- ---------- ----------
English 03 02
mathematics 02 02
Chinese language and literature 01 02
sports 04 03
English 03 03
mathematics 02 03
Chinese language and literature 01 03
sports 04 04
English 03 04
sports 04 04
Chinese language and literature 01 04CNAME ABCD SID
---------- ---------- ----------
mathematics 02 05
English 03 05
English 03 06
Chinese language and literature 01 06
sports 04 07
mathematics 02 07
English 03 07
But I want to 2 Table associated query The following error occurred
with sss as (select cc.cname,cc.cid abcd,ss.sid from course cc,sc scc,student ss where cc.cid=scc.cid and scc.sid=ss.sid and ss.sid=01),
with t as (select cc.cname,cc.cid abcd,ss.sid from course cc,sc scc,student ss where cc.cid=scc.cid and scc.sid=ss.sid and ss.sid!=01)
2 3 select * from t,sss;
with t as (select cc.cname,cc.cid abcd,ss.sid from course cc,sc scc,student ss where cc.cid=scc.cid and scc.sid=ss.sid and ss.sid!=01)
*
ERROR at line 2:
ORA-00903: invalid table name

The translation is very clear Invalid table name !!( If the table name is clearly right, why is it invalid ????)
Later, I found many wtih Success after removal
SQL> ;
1 with sss as (select cc.cname,cc.cid abcd,ss.sid from course cc,sc scc,student ss where cc.cid=scc.cid and scc.sid=ss.sid and ss.sid=01),
2 with t as (select cc.cname,cc.cid abcd,ss.sid from course cc,sc scc,student ss where cc.cid=scc.cid and scc.sid=ss.sid and ss.sid!=01)
3* select * from t,sss
with sss as (select cc.cname,cc.cid abcd,ss.sid from course cc,sc scc,student ss where cc.cid=scc.cid and scc.sid=ss.sid and ss.sid=01),
t as (select cc.cname,cc.cid abcd,ss.sid from course cc,sc scc,student ss where cc.cid=scc.cid and scc.sid=ss.sid and ss.sid!=01)
2 3 select * from t,sss;
CNAME ABCD SID CNAME ABCD SID
---------- ---------- ---------- ---------- ---------- ----------
English 03 02 Chinese language and literature 01 01
English 03 02 mathematics 02 01
Be careful 1 Multiple tables with as Get rid of the back

Be careful 2 Multiple tables with as Add a comma in the middle

The data is successfully found !!!!!!!!!!!!!
边栏推荐
- The 300th weekly match of leetcode (20220703)
- The 15th youth informatics competition in Shushan District in 2019
- redis分布式锁的8大坑总结梳理
- Scala basic tutorial -- 14 -- implicit conversion
- Scala basic tutorial -- 12 -- Reading and writing data
- SSL证书续费相关问题详解
- Li Chi's work and life summary in June 2022
- 长城证券开户安全吗 买股票怎么开户
- [release] a tool for testing WebService and database connection - dbtest v1.0
- 小发猫物联网平台搭建与应用模型
猜你喜欢

The 300th weekly match of leetcode (20220703)

OpenCV的二值化处理函数threshold()详解

正则替换【JS,正则表达式】

The latest progress of Intel Integrated Optoelectronics Research promotes the progress of CO packaging optics and optical interconnection technology
![[go ~ 0 to 1] read, write and create files on the sixth day](/img/cb/b6785ad7d7c7df786f718892a0c058.png)
[go ~ 0 to 1] read, write and create files on the sixth day

LM10丨余弦波动顺势网格策略

Scala basic tutorial -- 20 -- akka
![[uniapp] uniapp development app online Preview PDF file](/img/11/d640338c626249057f7ad616b55c4f.png)
[uniapp] uniapp development app online Preview PDF file
![[release] a tool for testing WebService and database connection - dbtest v1.0](/img/4e/4154fec22035725d6c7aecd3371b05.jpg)
[release] a tool for testing WebService and database connection - dbtest v1.0

Scala basic tutorial -- 18 -- set (2)
随机推荐
BI技巧丨权限轴
Esp32-c3 introductory tutorial questions ⑫ - undefined reference to ROM_ temp_ to_ power, in function phy_ get_ romfunc_ addr
2022-07-04:以下go语言代码输出什么?A:true;B:false;C:编译错误。 package main import 'fmt' func
repeat_P1002 [NOIP2002 普及组] 过河卒_dp
Shell 编程核心技术《一》
Wechat reading notes of "work, consumerism and the new poor"
性能优化之关键渲染路径
反射(一)
Don't just learn Oracle and MySQL!
Shell 编程核心技术《二》
Li Chi's work and life summary in June 2022
The difference and usage between substr (), slice (), and substring () in the string interception methods of "understand series after reading"
IBM WebSphere MQ retrieving messages
[uniapp] uniapp development app online Preview PDF file
基于NCF的多模块协同实例
2021 合肥市信息学竞赛小学组
从实时应用角度谈通信总线仲裁机制和网络流控
测试工程师如何“攻城”(上)
《工作、消费主义和新穷人》的微信读书笔记
信息学奥赛一本通 1336:【例3-1】找树根和孩子