摘要:
select *,1 Sort from Tab1 where XXunionselect *,2 Sort from epic where XX and XX(排除上面SQL查询的数据) order by Sort asc,Epic_ID asc。缺陷:union失去排除重复的左右。适用场合:上面查询语句数据必须排在后面查询语句数据前面并且上面数据较少。否则另取他法。 阅读全文
posted @ 2012-05-09 15:39
BlueAmbition
阅读(1060)
评论(0)
推荐(0)