query to copy the records from existing table to new table

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • doll
    New Member
    • Jul 2007
    • 24

    query to copy the records from existing table to new table

    hi all
    i need to write a query to copy the records from existing table to new table...my existing table name is persons and the fields are name, salary,id,age.. i need to copy these to another table called t1..wat is the query..please help

    thanking you
  • davef
    New Member
    • Sep 2007
    • 98

    #2
    Originally posted by doll
    hi all
    i need to write a query to copy the records from existing table to new table...my existing table name is persons and the fields are name, salary,id,age.. i need to copy these to another table called t1..wat is the query..please help

    thanking you
    Code:
    insert into t1 (name,salary,id,age) select name,salary,id,age from persons

    Comment

    Working...