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: Inserts with different conditions in pl/sql

Re: Inserts with different conditions in pl/sql

From: <DBarbour_at_austin.isd.tenet.edu>
Date: Tue, 13 Nov 2001 10:23:43 -0800
Message-ID: <F001.003C3935.20011113091526@fatcity.com>

Use to_char, or to_number or a combination with replace, length, substr, translate, decode etc. to achieve your desired results.

Do you have access to Metalink? Did you ever get a subscription to OTN? If you don't have any one of the numerous fine books (many authored by people on this list) which would really give you a much better foundation, OTN has lots of documentation on utilities, PL/SQL and database administration.

David A. Barbour
Oracle DBA, OCP
AISD
512-414-1002

                                                                                       
                            
                    Roland.Skoldbl                                                     
                            
                    om_at_ica.se            To:     Multiple recipients of list ORACLE-L 
<ORACLE-L_at_fatcity.com>       
                    Sent by:             cc:                                           
                            
                    root_at_fatcity.c       Subject:     Inserts with different 
conditions in pl/sql                  
                    om                                                                 
                            
                                                                                       
                            
                                                                                       
                            
                    11/13/2001                                                         
                            
                    02:20 AM                                                           
                            
                    Please respond                                                     
                            
                    to ORACLE-L                                                        
                            
                                                                                       
                            
                                                                                       
                            




Hallo,

How can I write in a pl/sql block if I want to do an insert from one table to another
 table and at the same time translate the value '?' to 98 and the value 'X' to 'Missing info'
Both those values can exist in the first table. The datatyupe in table one is varchar2 and in table two it is numberdatatype.

Please help me.

Thanks in advance.

Roland S

--
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: DBarbour_at_austin.isd.tenet.edu 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 Nov 13 2001 - 12:23:43 CST

Original text of this message

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