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

Home -> Community -> Usenet -> c.d.o.misc -> Re: Check if value changed from Default value

Re: Check if value changed from Default value

From: Connor McDonald <connor_mcdonald_at_yahoo.com>
Date: Wed, 26 Sep 2001 19:05:29 +0100
Message-ID: <3BB218E9.47DF@yahoo.com>


Brian Tkatch wrote:
>
> Just before I was trying to find out if the value from a column was
> changed from its default. The column is a VARCHAR2. Defaults (in
> ALL_TAB_COLUMNS) are in Data_Default, which is a LONG. Is there a way
> to do the comparison.
>
> Something like
>
> SELECT
> Moo
> FROM
> Cow
> WHERE
> Moo <> (SELECT
> Data_Default
> FROM
> User_Tab_Columns
> WHERE
> Table_Name = 'COW'
> AND Column_Name = 'MOO');
>
> Brian

A quick hack would to use PL/SQL to select the long into a varchar to enable the check

hth
connor

-- 
==============================
Connor McDonald

http://www.oracledba.co.uk

"Some days you're the pigeon, some days you're the statue..."
Received on Wed Sep 26 2001 - 13:05:29 CDT

Original text of this message

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