Jump to content

*solved* How to move One table values to another table (with one extra field)


rajmohan

Recommended Posts

Hello guy

I am having two tables fields followed by

[b]table1[/b]

one
two
three

[b]table2[/b]
one
two
three
four

I want to move the values from table1 to table2
mysql_query("insert into table2(select * from table1 where id='1'");

it is not working how to write a query please help me

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.