Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: How to update a column to its default value?

Re: How to update a column to its default value?

From: JUngruh <joachim.ungruh_at_cardinal.com>
Date: 28 Apr 2003 10:50:10 -0700
Message-ID: <4b880313.0304280950.22e45a5e@posting.google.com>


2 quick ways that I can think of.

  1. Just update the LAST_UPDATE column at the same time as the text column. update DEFAULT_TABLE set TEXT = 'George', LAST_UPDATE = sysdate where TEXT = 'John';
  2. Create an after update trigger for each row to update the LAST_UPDATE column whenever a record is updated.

I like option 1 better, only 1 statement involved. Received on Mon Apr 28 2003 - 12:50:10 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US