A, B, C 三个表。select colum form A;if (colum = 0) { select * from A,B where A..xx = B.xx .......} else { select * from A,C where A..xx = C.xx .......
}请问以上的 所有sql,能不能用一个sql 搞定?各位大虾帮帮忙,不然明天就下岗了。谢谢。
}请问以上的 所有sql,能不能用一个sql 搞定?各位大虾帮帮忙,不然明天就下岗了。谢谢。
and A.colum =0unionselect * from A,C where A..xx = C.xx .......
and A.colum <>0