eg: table_ccy100
字段: mcoil_no coil_no m_coil_yn
h070607 h07060701 c
h070607 h070607 m
h070608 h070608 m
h070609 h07060901 c
请问: select x.ord_no ,x.ord_seq
from tb_ccy100 x, tb_ccy100 y
where x.mcoil_no =y.coil_no ;
和
select x.ord_no,x.ord_seq
from tb_ccy100 x, tb_ccy100 y
where x.coil_no = y.mcoil_no ;
却不同,但是为什么呢? 同一个表,不同的查询条件,不同的结果,请那位高人给指点指点
字段: mcoil_no coil_no m_coil_yn
h070607 h07060701 c
h070607 h070607 m
h070608 h070608 m
h070609 h07060901 c
请问: select x.ord_no ,x.ord_seq
from tb_ccy100 x, tb_ccy100 y
where x.mcoil_no =y.coil_no ;
和
select x.ord_no,x.ord_seq
from tb_ccy100 x, tb_ccy100 y
where x.coil_no = y.mcoil_no ;
却不同,但是为什么呢? 同一个表,不同的查询条件,不同的结果,请那位高人给指点指点
解决方案 »
- 一个sql请教
- 数据库题目 急急
- oracle表key和check均变为乱码,无法对表结构进行修改,无法删除表,查询速度极慢,求解决办法。
- 数据库字段设计问题
- Drop partition与Truncate的区别?
- 在ASP.NET页面中,哪种方法可以比较好的显示ORACLE9I的表中的数据?
- exists 遇到的问题
- 要吐血了,重新装了 win2k advance server,还是装不上 Oracle 816!错误如下。
- 如何知道Oracle正在做什么工作?
- 求助:SQL查询排除掉开始时间与结束时间不相邻的记录
- !!!一条sql语句实现将多条记录合并到一条记录
- 用toad,execute as script 不响应?请大侠帮忙
当x.coil_no=y.mcoil_no时:是 一对多的关系楼主可以当作两个独立的表体会一下。