mysql行专列
mysql行专列
这个可以用于户角色,菜单的初始化---之前用java过滤组织
select
r.ROLE_NAME, group_concat(f.FUNC_NAME separator '/') as b_str from financial_sales_role r LEFT JOIN financial_sales_func_role fr ON r.ID=fr.ROLE_ID
LEFT JOIN financial_sales_func f ON fr.FUNC_ID= f.ID
group by r.ROLE_NAME;
参考:
http://www.cnblogs.com/lhj588/p/3315876.html
https://blog.csdn.net/aya19880214/article/details/41280893
相关推荐
CoderToy 2020-11-16
emmm00 2020-11-17
王艺强 2020-11-17
ribavnu 2020-11-16
bianruifeng 2020-11-16
wangshuangbao 2020-11-13
苏康申 2020-11-13
vivenwan 2020-11-13
moyekongling 2020-11-13
云中舞步 2020-11-12
要啥自行车一把梭 2020-11-12
aydh 2020-11-12
kuwoyinlehe 2020-11-12
minerk 2020-11-12
vitasfly 2020-11-12
jazywoo在路上 2020-11-11
敏敏张 2020-11-11
世樹 2020-11-11