摘要: 1. select count(*) from .... 这种方法最常见但是效率比较低,因为它需要扫描所有满足条件的记录 2. select 1 from xxxtable where .... 这种方式效率比较高 3.在第2中方式的基础上结合exist函数 select exists(select 阅读全文
posted @ 2016-06-17 18:47 Monkey.Knight 阅读(553) 评论(0) 推荐(0) 编辑