select a.user_name
from user1 a join user1_skills b on b.user_id = a.id
where b.skill in ('念经','变化','腾云','浮水',) and b.skill_level>0
group by a.user_name having couint(*)>=2
;
转载于:https://my.oschina.net/u/3430557/blog/1029907
本文探讨了使用SQL进行复杂查询的技术,特别是如何通过联接多个表并应用特定条件来筛选用户技能。示例展示了如何从'user1a'和'user1_skills'表中选取具有特定技能且技能水平超过零的用户,并确保每位用户至少拥有两项技能。
4万+

被折叠的 条评论
为什么被折叠?



