oracle去重
2015-11-19 09:18
441 查看
oracle去重
create table tmp_table3 as (SELECT seqno FROM (SELECT t.seqno,ROWID, ROW_NUMBER() OVER(PARTITION BY title, uin ORDER BY createtime) DUP FROM calendar_info t where isdelflag = 0 and specialtype = 1 --and uin = '30647' and comefrom = 12) WHERE DUP > 1); --删除邀请表 delete calendar_invite_info where calseqno in (select seqno from tmp_table3); --更新变更表 update CALENDAR_SYNC_UPDATE set token = calendar_sync_update_token.nextVal, action_type = 2, updateTime = sysdate WHERE calseqno IN (select seqno from tmp_table3); --删除活动表 delete calendar_info where seqno in (select seqno from tmp_table3);
相关文章推荐
- 解决oracle 11G exp 不能导出空表问题
- Oracle+struts2实现用户登入并显示访问次数
- 什么叫做Oracle RAC中的nodename
- oracle排序,出现页数不同数据却重复问题的原因及解决办法
- oracle索引总结
- 如何让dapper支持oracle游标呢?
- oracle去重等基础问题
- ORACLE ORA22922 不存在的LOB值解决方法
- Oracle ubuntu 下快速安装
- Oracle Linux: Error "Missing Or Invalid IPv4 Prefix '0' On Linux Server" (文档 ID 1522095.1)
- 查看Oracle的实例
- Oracle 自定义结构(Record) 记录
- Oracle存储过程中的异常处理
- oracle系统包——dbms_job用法(oracle定时任务)
- PFILE和SPFILE介绍
- ORACLE PL/SQL 字符串函数、数学函数、日期函数
- Navicat V11 连接 oracle 11g 的问题
- oracle添加和查看注释
- J2EE应用中与Oracle数据库的连接
- Oracle 11g DG配置简明版