摘要: 1、如果为空返回0select ifnull(null,0)2、如果为空返回0,否则返回1select if(isnull(col),0,1) as col. 阅读全文
posted @ 2015-09-18 15:41 牙缸 阅读(141) 评论(0) 推荐(0)