sql select if使用方法

SELECT IF((SELECT COUNT(id) FROM activity_users WHERE userId=param_userId AND activityId =param_activityId)=0 OR (SELECT `status` FROM activity_users WHERE userId=param_userId AND activityId =param_activityId)=2,0,1) AS `status`
阅读更多
想对作者说点什么?

博主推荐

换一批

没有更多推荐了,返回首页