JFinal的分页语句,怎么在sql中写UNION
1个回答
2017-01-15
展开全部
JFinal的分页语句,怎么在sql中写UNION
select * from ( (SELECT a,b,c FROM tbl_name WHERE a=10 AND B=1)
UNION
(SELECT a,b,c FROM xxx_name WHERE a=11 AND B=2)
ORDER BY a LIMIT 10);
select * from ( (SELECT a,b,c FROM tbl_name WHERE a=10 AND B=1)
UNION
(SELECT a,b,c FROM xxx_name WHERE a=11 AND B=2)
ORDER BY a LIMIT 10);
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询