select kkk.code,...from (select code,name from a where ....) as kkk union...
在一些复杂的select语句,由于字段code可能来自不同的select集合
所以可不可以将一个select集合as kkk?
然后select kkk,code?
在一些复杂的select语句,由于字段code可能来自不同的select集合
所以可不可以将一个select集合as kkk?
然后select kkk,code?
调试欢乐多
所以可不可以将一个select集合as kkk?
然后select kkk.code?
如: select field1 ,.... from table1 a,(select * from table2) b where a.field1 = b.filed1
union
.....