如何查看网站使用什么程序做的建设网站需要备案
news/
2025/10/8 3:29:59/
文章来源:
如何查看网站使用什么程序做的,建设网站需要备案,用服务器ip可以做网站吗,企排排官网ORA-30926: 无法在源表中获得一组稳定的行 同时要求在一张表中添加一个字段#xff0c;由于数据量较大#xff0c;想使用merge into update的方式将数据 meger into xxx1 t1 using(select * from xxx2 )t2 on(t1.xmt2.xm and t1.dzt2.dz) when matched then update set tra… ORA-30926: 无法在源表中获得一组稳定的行 同时要求在一张表中添加一个字段由于数据量较大想使用merge into update的方式将数据 meger into xxx1 t1 using(select * from xxx2 )t2 on(t1.xmt2.xm and t1.dzt2.dz) when matched then update set train_timed_time; commit; 执行了两个小时后 报错ORA-30926: 无法在源表中获得一组稳定的行 后来网上查找资料meger into on 字段应给是唯一值 首先我们要知道merge into存在的意义是什么 使用merge into 是为了根据匹配条件on(condition)利用table_source 的数据更新合并table_target的数据。merge into 的内部处理是将table_source 的每一条记录和table_target的每一条记录对比匹配匹配到符合条件的 记录就会进行修改匹配不到的话就会insert。如果table_source的匹配列中有重复值的话等到第二次重复的列值匹配的时候就会将第一次的update后的值再一次update,就是说合并后的table_target中会丢失在table_source中的记录如果记录丢失的话两表合并的意义何在因此我们使用merge into要注意源表匹配列中不能有重复值否则无法匹配报错 。 查询一下ORA-30926错误的具体说明 Oracle Error : ORA-30926 unable to get a stable set of rows in the source tables Cause A stable set of rows could not be got because of large dml activity or a non-deterministic where clause. Action Remove any non-deterministic where clauses and reissue the dml. If there is either a many-to-one or many-to-many relationship between the source and target tables. This is not as serious as it sounds because you would normally have to MERGE a one-to-one or one-to-zero relationship as your join condition would be protected by the targets primary key. When performing a merge statement, the table to be merged had multiplerecords with the same key used for matching. While this is ok forrecords to be inserted into the target table, Oracle doesnt like thison the update portion of the statement. The solution is to remove the duplicate or pick a matching key that is truely unique. There is a restriction that multiple updates to the same row in the destination table is not allowed. ORA-30926 error will be returned if this is attempted. 通过上面的信息可以得知对目标表中的相同行数据进行多次更新是不允许的这样会导致ORA-30926错误。 追溯代码确保MERGE INTO中USING表对于ON中的关联条件是唯一的注意到表DW.FACT_DEAL_AUCTION_D的数据是细化到AUCTION_ID的会存在多条相同的CUSTID和CATID维度数据。通过使用group by修改代码即可解决。
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/931080.shtml
如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!