rajmohan Posted September 20, 2006 Share Posted September 20, 2006 Hello guy I am having two tables fields followed by[b]table1[/b]one twothree[b]table2[/b]one twothreefourI want to move the values from table1 to table2mysql_query("insert into table2(select * from table1 where id='1'"); it is not working how to write a query please help me Link to comment https://forums.phpfreaks.com/topic/21364-solved-how-to-move-one-table-values-to-another-table-with-one-extra-field/ Share on other sites More sharing options...
Barand Posted September 20, 2006 Share Posted September 20, 2006 insert into table2 (one, two, three) select * from table1 where id='1'" Link to comment https://forums.phpfreaks.com/topic/21364-solved-how-to-move-one-table-values-to-another-table-with-one-extra-field/#findComment-95126 Share on other sites More sharing options...
rajmohan Posted September 20, 2006 Author Share Posted September 20, 2006 Yes working thanks Link to comment https://forums.phpfreaks.com/topic/21364-solved-how-to-move-one-table-values-to-another-table-with-one-extra-field/#findComment-95130 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.