IFNULL()方法
IFNULL(expr1,expr2)
如果expr1不是NULL,IFNULL()返回expr1,否则它返回expr2。IFNULL()返回一个数字或字符串值
List<Map<String, Object>> maps = baseInfoService.selectForSql(sql); System.out.println(maps);
微信扫一扫
IFNULL(expr1,expr2)
如果expr1不是NULL,IFNULL()返回expr1,否则它返回expr2。IFNULL()返回一个数字或字符串值
List<Map<String, Object>> maps = baseInfoService.selectForSql(sql); System.out.println(maps);
相关推荐