会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
名尚
博客园
首页
新随笔
联系
订阅
管理
2017年3月16日
sql查询表中字段值相同的数据记录
摘要: 查询A表中id的值相同的数据 select * from A a where exists (select id from A where id=a.id group by id having count(*)>1) ORDER BY id
阅读全文
posted @ 2017-03-16 15:22 名尚
阅读(1758)
评论(0)
推荐(0)
2017年1月11日
Java 导出定制格式的word
摘要: FreeMarker支持多种模板装载方法 1、使用word2003把自己需要导出word模版 模版创建好,另存为xml格式,勾选仅保存数据。弹出提示点击“保存wordXML格式”。 可以看到xml文件,使用文本编辑器打开 <#list newsList as user> 其中 list 是一个集合
阅读全文
posted @ 2017-01-11 11:27 名尚
阅读(629)
评论(0)
推荐(0)
2017年1月5日
mysql‘事件计划已关闭。事件只能在服务器启动并开启事件计划时才能处理。'的警告
摘要: 通过下列语句查询event是否开启 show variables like '%sche%'; 通过执行下列语句,来开启event_schedulerset global event_scheduler =1; 或者 set global event_scheduler=on;
阅读全文
posted @ 2017-01-05 15:08 名尚
阅读(9719)
评论(0)
推荐(0)
2017年1月4日
springmvc+mybatis事务回滚
摘要: spring-mybatis.xml中 配置了 spring-mvc.xml中配置了 开启了自动扫描,发现service层并不能回滚。 在spring-mvc.xml添加 此为:扫描所有的controller 但是不扫描service 这样service层就能自动开启事务了 但是这样有个问题,ser
阅读全文
posted @ 2017-01-04 14:22 名尚
阅读(11799)
评论(1)
推荐(0)
公告