![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
sql
qunwuhui
这个作者很懒,什么都没留下…
展开
-
解决A different object with the same identifier value was already associated with the session
//判断数据库是否存在一样的值if (data_riverList.size() > 0) {//t_Data_RiverDao.update(t_data_river),报标题的错误 t_Data_RiverDao.merge(t_data_river);} else { t_Data_RiverDao.save(t_data_river);}...转载 2019-04-16 13:42:57 · 142 阅读 · 0 评论 -
sql 替换字段中的部分字符,替换指定字符
update 表名 set 字段=replace(字段,‘替换的部分’,‘替换后的字符串’);update表名setA=replace(A,'海淀','朝阳')whereAlike'海淀'; (将A字段中的“海淀”替换成“朝阳”);update yb_user_img set image=replace( image, 'http://192.168.0.126', ...转载 2019-04-15 14:00:52 · 21692 阅读 · 0 评论