摘要: 一般我们在使用ifnull()方法的时候,都是类似下面的语句: IFNULL(expr1,expr2)如果expr1不是NULL,IFNULL()返回expr1,否则它返回expr2。IFNULL()返回一个数字或字符串值 select ifnull(name,'no name') from per 阅读全文
posted @ 2021-05-15 11:17 红尘沙漏 阅读(1827) 评论(0) 推荐(0) 编辑
摘要: // Triger_flow_group_user_Insert BEGIN SET new.fid=REPLACE(UUID(),'-',''); set new.userName=(select ifnull(name,real_name) as name from blade_user whe 阅读全文
posted @ 2021-05-15 11:06 红尘沙漏 阅读(50) 评论(0) 推荐(0) 编辑