Merge Into article aa
Using (
SELECT md5_id, Min(article_id) as Min_Article_ID
from article
WHERE created_time between (sysdate-10/(24*60)) and sysdate
and Min_Article_ID is null
GROUP BY md5_id HAVING COUNT(*)>1
) sr
ON (aa.md5_id=sr.md5_id)
WHEN MATCHED THEN
UPDATE
SET aa.Min_Article_ID=sr.Min_Article_ID,aa.samilar_record_count=1
Where aa.created_time between (sysdate-10/(24*60)) and sysdate
And aa.Min_Article_ID is null;
相关文章
- RUBY Error: Please update your PATH to include build tools or download the DevKit
- rosdep update超时问题原因及解决方法
- A Simple OpenGL Shader Example II
- MySQL之改_update
- conda update后出现的问题及conda回滚,回到历史版本
- Mybatis中的update动态SQL语句
- mybatisplus中update--更新使用注意事项
- Mybatis-Plus--update, updateById将字段更新为null
- 【Mybatis-Plus】使用updateById、update将字段更新为null
- mybatisPlus 使用@Select @Update等注解配置SQL时参数传递