2011年10月27日
摘要: select * from account where userName like 'ad%';select * from account where userName >= 'ad' and userName < 'ae'这两种查询的结果是一样的,效率好像也差不多,没有做具体的效率测试,有兴趣可以测试下效率。like查询中的ad%是查询ad开头userName的数据,而userName >= 'ad'就是查询ad开头的数据并且还包含 ae、af、ag……,也就是说是查询“ad”中包含d且大于“ad”中d的数据所 阅读全文
posted @ 2011-10-27 15:53 hoojo 阅读(4137) 评论(3) 推荐(1) 编辑