Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.databases.oracle    |    Overblown overpriced overengineered SHIT    |    2,288 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 1,084 of 2,288    |
|    Jia Lian Chang to All    |
|    Re: How to fill empty column with number    |
|    13 Feb 04 14:22:36    |
      From: chang4@cox.net              You can create a temporary trigger that fires on updates. It will be       somewhat similar to your insert trigger, e.g.        if (:new.id = -1) then        :new.id := seq_name@nextval;              Then, just update your whole table:        update tablename        set id = -1;              Remove the temporary update trigger after that.              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca