Results 1 to 3 of 3
  1. #1
    Join Date
    Jul 2004
    Posts
    13

    Unanswered: insert into a table from another table

    hi all..

    i'm new in sql and also very poor
    i need the sql syntax for inserting into a table from another table both having same structure
    pls help

  2. #2
    Join Date
    Sep 2002
    Location
    UK
    Posts
    5,171
    Provided Answers: 1
    insert into table2 (col1, col2, col3)
    select col1, col2, col3 from table1;

    If the columns are in the same order in both tables then this shorthand will work:

    insert into table2
    select * from table1;

  3. #3
    Join Date
    Jul 2004
    Posts
    13

    Smile thank u

    thank u andrews thank u very much
    i got it
    Lals

Posting Permissions

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