SELECT
`reference_of_common`
FROM `tbl_taxonomic_character`
WHERE
(root_character,character_sub1) IN (
('habit','Climber'),
('floral type','pentamerous')
)
group by reference_of_common;
此查询用作OR操作。如何编写AND操作的查询?
请帮帮我
答案 0 :(得分:0)
尝试使用
SELECT
`reference_of_common`
FROM `tbl_taxonomic_character`
WHERE
(root_character,character_sub1)IN(
('habit','Climber'),
('floral type','pentamerous')
)
group by reference_of_common having COUNT(DISTINCT root_character)>1 ;