Hi ,
I want to copy the selected fields,
eg:SELECT * FROM table1 where flag='1';
to another table ,table2
can anyone plz help me
Hi ,
I want to copy the selected fields,
eg:SELECT * FROM table1 where flag='1';
to another table ,table2
can anyone plz help me
http://dev.mysql.com/doc/refman/5.5/en/insert-select.html
INSERT INTO newtable (field1, field2) SELECT field1, field2 FROM oldtable WHERE flag = '1'
thanks a lot :)
Please consider to mark this thread solved.
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.