0
点赞
收藏
分享

微信扫一扫

Mybatis IFNULL函数用法

mafa1993 2022-04-06 阅读 32
java后端

Mybatis IFNULL函数用法
在这里插入图片描述
实例:

SELECT IFNULL
假设:select * from user where userId=1有返回结果那么直接返回子查询结果
((select * from user where userId=1), "RUNOOB"); 
假设:select * from user where userId=1没有返回结果那么返回 'RUNOOB'
((select * from user where userId=1), "RUNOOB");
举报

相关推荐

0 条评论