We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 82b2e1c commit 40e3413Copy full SHA for 40e3413
mysql开发技巧三/多属性查询
@@ -29,3 +29,11 @@ Where (case when b.skill is not null then 1 else 0 end)
29
+(case when d.skill is not null then 1 else 0 end)
30
+(case when e.skill is not null then 1 else 0 end)>=2;
31
32
+********************************************************************************
33
+Group by 分组 查询多属性
34
+
35
+select a.user_name
36
+from user1 a
37
+join user1_skills b on a.id=b.user_id
38
+where b.skill in('念经','变化','腾云','浮水') and b.skill_level>0
39
+group by a.user_name having count(*)>=2
0 commit comments