covert data from one table to another

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • karthickkuchanur
    New Member
    • Dec 2007
    • 156

    covert data from one table to another

    hai all
    i have the table name temp which contain the value,i want to copy the data from that table to new table i had tries but it throws error


    CREATE TABLE TEMP1 AS(SELECT * FROM TEMP)

    iam not have the table temp1,but the above query is working in oracle please help me
  • ck9663
    Recognized Expert Specialist
    • Jun 2007
    • 2878

    #2
    Originally posted by karthickkuchanu r
    hai all
    i have the table name temp which contain the value,i want to copy the data from that table to new table i had tries but it throws error


    CREATE TABLE TEMP1 AS(SELECT * FROM TEMP)

    iam not have the table temp1,but the above query is working in oracle please help me

    try:

    Code:
    select * into newtable from yourtemptable
    -- CK

    Comment

    • karthickkuchanur
      New Member
      • Dec 2007
      • 156

      #3
      Originally posted by ck9663
      try:

      Code:
      select * into newtable from yourtemptable
      -- CK
      Thank u sir,i have ececuted it and working fine

      Comment

      Working...