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

Home -> Community -> Mailing Lists -> Oracle-L -> Re: Automate an update

Re: Automate an update

From: Gudmundur Bjarni Josepsson <gbj_at_index.is>
Date: Wed, 02 Jul 2003 08:43:46 -0700
Message-ID: <F001.005BE5BA.20030702082610@fatcity.com>


Joshua,

To update existing rows you could do something like:

update x set window_open = 'Y'
where to_char (time_field, 'hh24:mi:ss') between '08:00:00' and '16:00:00';

Similar for window_open = 'N'. Create a trigger to deal with future inserts.

Gudmundur

řessi půstur var sendur meū vefpůsti mi, http://www.mi.is

--

Please see the official ORACLE-L FAQ: http://www.orafaq.net
--

Author: Gudmundur Bjarni Josepsson
  INET: [EMAIL PROTECTED]

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). Received on Wed Jul 02 2003 - 10:43:46 CDT

Original text of this message

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