随笔分类 -  mysql

摘要:要把相同的数据合并了,后面name累加,效果如下: 代码如下: select us.id ID,us.uname 账号,mg.groupname 所在组,mg.groupnote 描述,group_concat(distinct m.title separator ';') 拥有权限 from us 阅读全文
posted @ 2016-03-03 17:15 红色小宇宙 阅读(2199) 评论(0) 推荐(0)
摘要:返回类似 select *from 的做法过程:create procedure selectAll()BEGINselect * from user;endxml配置: java配置://service层调用List> ss = accountMapper.selectall();//DAO调用... 阅读全文
posted @ 2015-01-06 09:26 红色小宇宙 阅读(446) 评论(0) 推荐(0)