Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: If-statement
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 Roland.Skoldblom_at_ica.se [mailto:Roland.Skoldblom_at_ica.se]
> 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: Roland.Skoldblom_at_ica.se
>
> 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: ListGuru_at_fatcity.com (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: Jorma.Vuorio_at_nokia.com 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: ListGuru_at_fatcity.com (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 Tue Mar 20 2001 - 08:35:03 CST
![]() |
![]() |