选择查询问题MYSQL

时间:2019-07-01 10:25:14

标签: mysql

此查询正在获取1000条记录:

select * from xyz where abc=3 and qwe in (employee_ids)

此查询获取1408作为计数:

select count(*) from xyz where abc=3 and qwe  in (employee_ids)

select * from xyz where abc=3 and qwe in (employee_ids) -- 1000
select count(*) from xyz where abc=3 and qwe  in (employee_ids) -- 1408

0 个答案:

没有答案