DBAsupport.com Forums - Powered by vBulletin
Results 1 to 5 of 5

Thread: data

  1. #1
    Join Date
    Dec 2000
    Posts
    62

    data

    hi i m trying to dump data from table A to table B in different schema but same instance. now table A has column that has different data values then table B. for example
    TABLE A. identification_no varachar(5)
    TABLE B .reference_id varchar(15)
    can someone help me with the script here they are pretty big tables.

  2. #2
    Join Date
    Aug 2002
    Location
    Atlanta
    Posts
    1,187
    use a function like to_char or to_num depending on your business need

    steve
    I'm stmontgo and I approve of this message

  3. #3
    Join Date
    Aug 2002
    Location
    Colorado Springs
    Posts
    5,253
    Code:
    Insert Into
       TABLE_B (reference_id)
    Select
       SubStr(identification_no,1,5)
    From
       TABLE_A
    Is that what you mean?
    David Aldridge,
    "The Oracle Sponge"

    Senior Manager, Business Intelligence Development
    XM Satellite Radio
    Washington, DC

    Oracle ACE

  4. #4
    Join Date
    Dec 2000
    Posts
    62
    yes that's it. if it's column 1 in table A has REVISION_DATE DATE
    and Column1 in tableB has REvision_date varchar(10)

  5. #5
    Join Date
    Oct 2000
    Location
    Saskatoon, SK, Canada
    Posts
    3,925
    Originally posted by mehak
    yes that's it. if it's column 1 in table A has REVISION_DATE DATE
    and Column1 in tableB has REvision_date varchar(10)
    You might want to refresh your SQL

    http://download-west.oracle.com/docs...a96540/toc.htm



    Sam
    Thanx
    Sam



    Life is a journey, not a destination!


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width