Inserting records from a SELECT statement (MySQL)
September 9, 2008
I often forget even simple syntax that makes MySQL operation easy. I’m just adding this basically for personal reference.
Using INSERT statement combined with the SELECT statement you could actually add records from one table to another table. Adding a WHERE clause could enable you to filter the records to copy. Below is the syntax.
INSERT INTO [...]
Filed under: MySQL |
Comments (4)
Related Links:
