how to copy one table data to another table

  • hi....

    I have table A of below columns.

    ID name surname

    --- -------- ---------

    1 Raju Desh

    2 Ramu Raj

    I need to copy ID =1 column in to B table.

    B table have same columns:

    ID name surname

    --- -------- ---------

    Is there any posibility to copy data ???

    Thanks
    Dastagiri.D

  • insert into table1

    select * from table2

    You need to be sure that the columns types match on both tables.

    Random Technical Stuff[/url]

  • ta.bu.shi.da.yu (8/7/2009)


    insert into table1

    select * from table2

    You need to be sure that the columns types match on both tables.

    to modify the code in the previous post, i'd write something like this

    insert into table1

    select * from table2 where id=1



    Pradeep Singh

  • Oops... sorry, didn't read that carefully enough.

    Random Technical Stuff[/url]

Viewing 4 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply