mysql返回Boolean类型的几种状况

第一种状况,直接返回 select id='22aa' from mytest where age=202 ////返回1 可封装为true select count(*)=1 from mytest where age=202 ////返回1 可封装为true select count(*)=0 from mytest where age=202 ////返回0 可封装为false sel
相关文章
相关标签/搜索