我有一个表下方mysql的组通过忽略空
id album_id album_name ---- --------- ----------- 1 5 test1 2 5 test1 3 6 test3 4 6 test3 5 NULL test4 6 NULL test4
我想写使用GROUP BY album_id查询给定的,它会给下面的结果
id album_id album_name ---- --------- ----------- 1 5 test1 3 6 test3 5 NULL test4 6 NULL test4
我都试过,但其分组NULL列也是,我希望所有的行都是NULL,并按album_id分组,它们不为空。
我跟了这link - 但不要对我
感谢
您的查询是什么? –