今年工作遇到这样一个问题,公司上不了网,自己写了一下。
SQL的形式大概是下面的形式。
但是结果里面出现了c1=1,的值。
不知道大家看没看明白。
SQL的形式大概是下面的形式。
select * from (
select c1, c2 from table1
union all
select c1, c2 from table2
start with c1 = 1
connect with c1 = c2
) t where c1 = 10;
但是结果里面出现了c1=1,的值。
不知道大家看没看明白。