t_medflow 表拥有1千万数据 FlowId是主键 拥有主键索引
统计总数量
select count(FLOWID) from t_medflow t
用时:1.5秒
select count(*) from t_medflow t
用时:1.46秒
多次测试效率差不多
添加条件查询
select count(FLOWID) from t_medflow t where pname like '%中%'
用时:
t_medflow 表拥有1千万数据 FlowId是主键 拥有主键索引
统计总数量
select count(FLOWID) from t_medflow t
用时:1.5秒
select count(*) from t_medflow t
用时:1.46秒
多次测试效率差不多
添加条件查询
select count(FLOWID) from t_medflow t where pname like '%中%'
用时: