select * from b where month='200301' and useid not in(
select id from a)
select id from a)
解决方案 »
- tomcat上发布项目报ORA-12505, TNS:listener does not currently know of SID given in conn
- oracle 字符串分割
- 一个Oracle SQL语句,调试总是报错,哪位大侠帮我解决下~谢谢
- PIPELINED 和 pipe row是什么意思?
- oracle 10g入门手册下好了,全英文的,怎么看?
- 100分请教高手,这个触发器如何写
- 关于oracle日期转换的问题
- 朋友帮忙:新安装的9i,登陆oracle management server总是提示"无法连接...
- oracle连接,后闲置过长时间后自动断开的问题
- 求教,可以在c#或java中使用call调用oracle存储过程并获取返回的结果集吗?
- 请教一个SQL语句
- 这条sql语句该怎么写?
from a,b
where a.id(+) = b.userid
and b.month = '200301'
select * from a,b where a.id(+)=b.userid and b.month='200301' and a.name is null;
多出来的两条记录应该是在a表不相关联的数据,可能就是无效数据
a表中有无效数据。
写的SQL执行的select A.name,b.*
from userdata a,basicsalary b
where a.id(+)=b.userid and b.salarymonth='200301'显示Token Unknow- line3,char9 (错误提示
还有在字段后面加(+)是什么意思?
----------
101
102
103
104
105SQL> select * from a2;BBB CCC
---------- --------------------
101
102
105SQL> select * from a1,a2 where a1.bbb(+)=a2.bbb;BBB BBB CCC
---------- ---------- --------------------
101 101
102 102
105 105SQL> select * from a1,a2 where a1.bbb=a2.bbb(+);BBB BBB CCC
---------- ---------- --------------------
101 101
102 102
103
104
105 105SQL>