Oracle 合并表中的相同数据:--合并关键字的命中率到一个字段
update table b set b.times=(
select c.cout from (
select a.keyword,count(*) as cout,min(a.rowid) as temprowid from table a group by a.keyword
) c
where b.rowid=c.temprowid)
where b.rowid in (select c.temprowid from (select a.keyword,count(*) as cout,min(a.rowid) as temprowid from table a group by a.keyword) c)
--简化之后(java代码中用下面来做。提高性能)
update Table b set b.times=(
select count(*) from Table a group by a.keyword
where a.rowid=?)
where b.rowid =?Oracle取某时间段的数据Oracle全文搜索中文相关资讯 Oracle数据库基础教程
- 在Oracle数据库中插入含有&符号的 (03/06/2013 09:20:14)
- Oracle 执行计划更改导致数据加工 (02/13/2013 14:45:04)
- 判断Oracle Sequence是否存在 (02/13/2013 14:32:26)
| - Oracle数据库中无法对数据表进行 (02/26/2013 14:24:58)
- Oracle 在同一台主机上建立用户管 (02/13/2013 14:40:58)
- Oracle em 无法启动,报not found错 (02/13/2013 14:29:48)
|
本文评论 查看全部评论 (0)