表 goods
id name
1 哈哈
2 呵呵
select * from goods where id = '1'
select * from goods where id = '2'
2个查询方法执行后是2个结果,如果能把这2个结果整合到一起返回结果呢?
请指点谢谢拉~
------解决方案--------------------
- SQL code
--1select * from goods where id = '1' or id = '2'--2select * from goods where id = '1'union all select * from goods where id = '2'
------解决方案--------------------