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: datatypes varchar to number

RE: datatypes varchar to number

From: <roland.skoldblom_at_ica.se>
Date: Mon, 03 Nov 2003 03:34:30 -0800
Message-ID: <F001.005D572D.20031103033430@fatcity.com>

In the varchar2(30) field PRICE , table1 it looks like this

PRICE 12,50
37,50

The datype in table 2 is for that field NUMBER(7,2)

Hope this would be of anyhelp

Rolabd

                                                                                                                                       
                      "Mark Leith"                                                                                                     
                      <mark_at_cool-tools.        To:       Multiple recipients of list ORACLE-L <ORACLE-L_at_fatcity.com>                   
                      co.uk>                   cc:                                                                                     
                      Sent by:                 Subject:  RE: datatypes varchar to number                                               
                      ml-errors_at_fatcity                                                                                                
                      .com                                                                                                             
                                                                                                                                       
                                                                                                                                       
                      2003-11-03 12:24                                                                                                 
                      Please respond to                                                                                                
                      ORACLE-L                                                                                                         
                                                                                                                                       
                                                                                                                                       




What's the data like in the varchar field? Is it in number format? A quick sample would be good.

-----Original Message-----

roland.skoldblom_at_ica.se
Sent: 03 November 2003 11:14
To: Multiple recipients of list ORACLE-L

Hallo,

Maybe this sounds simple for all of you, but I have a table with the field PRICE and that is with datatype varchar2 I want the data in that field to be inserted in another table with field PRICE, but that field has the datatype NUMBER. How can I
deasiest do this sql statement?

I really have to have the Varchar dataype in table1.

Thanks in advance

Roland

--

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

Author:
  INET: roland.skoldblom_at_ica.se

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: 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).
---

Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.530 / Virus Database: 325 - Release Date: 22/10/2003

---

Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.530 / Virus Database: 325 - Release Date: 22/10/2003

--

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

Author: Mark Leith
  INET: mark_at_cool-tools.co.uk

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: 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.net
--

Author:
  INET: roland.skoldblom_at_ica.se

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: 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 Mon Nov 03 2003 - 05:34:30 CST

Original text of this message

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