You don't have to use any if's, but use translate function:

update <Your_table> set <Your_column> = translate(<Your_column>,'?','0');

HTH
Jorma

> -----Original Message-----
> From: ext [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: 20 March, 2001 13:41
> To: Multiple recipients of list ORACLE-L
> Subject: If-statement
> 
> 
> Hallo,
> 
> Do you have any good example on how to write a procedure, 
> that checks if there is a ? in a column in tna table in te  
> database. If it is a ? then it will be put a "0" in the place 
> where it  is a ?. If it is not a ? then it will be the no change in
> that place.
> 
> Please help me with this
> 
> 
> Roland Sköldblom
> 
> -- 
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> -- 
> Author: 
>   INET: [EMAIL PROTECTED]
> 
> Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
> San Diego, California        -- Public Internet access / Mailing Lists
> --------------------------------------------------------------------
> 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).
> 
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author:
  INET: [EMAIL PROTECTED]

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
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).

Reply via email to