2021
08-08
08-08
浅谈mysql返回Boolean类型的几种情况
mysql返回Boolean类型第一种情况,直接返回selectid='22aa'frommytestwhereage=202返回1可封装为trueselectcount(*)=1frommytestwhereage=202返回1可封装为trueselectcount(*)=0frommytestwhereage=202返回0可封装为falseselectcount(*)<3frommytestwhereage=202返回1可封装为trueselectcount(*)<=1frommytestwhereage=202返回1可封装为trueselectname="aa"frommytestwhereage=10...
继续阅读 >