大家一起来分析一下这个SQL
今年工作遇到这样一个问题,公司上不了网,自己写了一下。
SQL的形式大概是下面的形式。
select * from (select c1, c2 from table1union allselect c1, c2 from table2 start with c1 = 1connect with c1 = c2) t where c1 = 10;
但是结果里面出现了c1=1,的值。
不知道大家看没看明白。
发布时间: 2012-10-27 10:42:25 作者: rapoo
大家一起来分析一下这个SQL
今年工作遇到这样一个问题,公司上不了网,自己写了一下。
SQL的形式大概是下面的形式。
select * from (select c1, c2 from table1union allselect c1, c2 from table2 start with c1 = 1connect with c1 = c2) t where c1 = 10;