譬如
select count(*) from A where  type = 'dog'
select count(*) from A where type = 'cat'
这两个怎么合并呢?
这里我只是举个例子
每个类型的结果我都是需要的,另外条件查询会更复杂的,可能还是 addtime >  And addtime <  **
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
直接用
UNION ALL合并查询内容可否type IN ('dog','cat')