select * from
(select tb1.字段,(select tb2.字段 from tb2 where rownum = 1) as 字段2 from tb1) A
where A.字段2 like '%ABC%'但是查出来的竟然将全部都查出来了,也就是where A.字段2 like '%ABC%'没有起作用!已经确认里面没有 空值 到底为什么?
(select tb1.字段,(select tb2.字段 from tb2 where rownum = 1) as 字段2 from tb1) A
where A.字段2 like '%ABC%'但是查出来的竟然将全部都查出来了,也就是where A.字段2 like '%ABC%'没有起作用!已经确认里面没有 空值 到底为什么?
这只是个例子~~~正式情况下子查询当然还是有条件的~~~大家不要在这个问题上纠缠,这里可以告诉大家如果只查询
select tb1.字段,(select tb2.字段 from tb2 where rownum = 1) as 字段2 from tb1
出来很多结果"字段2"是不一样的内容