码迷,mamicode.com
首页 > 其他好文 > 详细

ORA-25154/ORA-01748

时间:2015-06-25 12:06:04      阅读:1279      评论:0      收藏:0      [点我收藏+]

标签:

SQL> select oi.order_id,product_id,order_date from order_items oi join orders o using(order_id) where rownum<=3;

select oi.order_id,product_id,order_date from order_items oi join orders o using(order_id) where rownum<=3
ORA-25154: USING 子句的列部分不能有限定词

SQL> select order_id,product_id,order_date from order_items oi join orders o using(oi.order_id) where rownum<=3;
select order_id,product_id,order_date from order_items oi join orders o using(oi.order_id) where rownum<=3
ORA-01748: 此处只允许简单的列名

SQL> select order_id,product_id,order_date from order_items oi join orders o using(order_id) where rownum<=3;
ORDER_ID PRODUCT_ID ORDER_DATE
------------- ---------- --------------------------------------------------------------------------------
2458 3117 17-8月 -07 03.34.12.234359 上午
2458 3123 17-8月 -07 03.34.12.234359 上午
2458 3127 17-8月 -07 03.34.12.234359 上午

ORA-25154/ORA-01748

标签:

原文地址:http://www.cnblogs.com/rusking/p/4599396.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!