With with reference to this questions aswer where we transfer contents from one table to another, The doubt that I am having is that ,How to go further if we have to add another column's value which is not there in old table but ,should be there in new table..
ie: from INSERT INTO newTable (col1, col2, col3)SELECT column1, column2, column3 FROM oldTable
to
INSERT INTO newTable (col1, col2, col3,date)
SELECT column1, column2, column3
FROM oldTable
.
Please note that date column is not there in old table but should be in new table.Yes ofcourse we can include insert query with help of id ,but it becomes 2 separate queries.But can this be done using a single query..