WeSearch

Following ROWIDs Through an Oracle Unique Index Update

·15 min read · 0 reactions · 0 comments · 4 views
#following#rowids#through#oracle#unique
Following ROWIDs Through an Oracle Unique Index Update
TL;DR · WeSearch summary

SQL> create table franck ( val int unique ); Table created. SQL> insert into franck values (-1) , (1) ; 2 rows created. SQL> select val from franck; VAL ---------- -1 1 SQL> update franck set val=-val; 2 rows updated.

Key facts
About this source

DEV.to (Top) files mainly under programming. We currently carry 4,909 of its stories.

Original article
DEV Community
Read full at DEV Community →
Opening excerpt (first ~120 words) tap to expand

try { if(localStorage) { let currentUser = localStorage.getItem('current_user'); if (currentUser) { currentUser = JSON.parse(currentUser); if (currentUser.id === 114176) { document.getElementById('article-show-container').classList.add('current-user-is-article-author'); } } } } catch (e) { console.error(e); } Franck Pachot Posted on Jul 26 Following ROWIDs Through an Oracle Unique Index Update #oracle #postgres #sql #index I've always been amazed by how Oracle Database handles updates to a unique column—performing set-based operations that don't violate the unique constraint, yet when executed row by row, it temporarily permits duplicates. SQL> create table franck ( val int unique ); Table created. SQL> insert into franck values (-1) , (1) ; 2 rows created.

Excerpt limited to ~120 words for fair-use compliance. The full article is at DEV Community.

Anonymous · no account needed
Share 𝕏 Facebook Reddit LinkedIn Threads WhatsApp Bluesky Mastodon Email

Discussion

0 comments

More from DEV Community