譬如
select count(*) from A where type = 'dog'
select count(*) from A where type = 'cat'
这两个怎么合并呢?
这里我只是举个例子
每个类型的结果我都是需要的,另外条件查询会更复杂的,可能还是 addtime > And addtime < **
譬如
select count(*) from A where type = 'dog'
select count(*) from A where type = 'cat'
这两个怎么合并呢?
这里我只是举个例子
每个类型的结果我都是需要的,另外条件查询会更复杂的,可能还是 addtime > And addtime < **
4 回答971 阅读
1 回答653 阅读✓ 已解决
2 回答627 阅读
1 回答648 阅读
605 阅读
直接用
UNION ALL合并查询内容可否