I have two tables – table1 and table2
table1 has 14 columns and table2 has 15 columns. The first 14 columns in both the tables are the same and in the same order. I want to copy certain rows of table1 into table2 and insert a timestamp into the 15th column. How to write the query for this?
You could use an *, but that’s a recipe for future problems: The query will fail when you change the column definitions in one of your tables.