摘要: 在很多时候需要查询判断某个值是否存在于数据库中,但用常规查法效率低,先来看两段select * from users where uid<1;select 1 from users where uid<1;由此可以看出,用下面这种写法还有一个好处就是判断的时候很方便,有则返回true,无则false; 阅读全文
posted @ 2012-08-01 21:50 tywei 阅读(1306) 评论(0) 推荐(0) 编辑