MySQL: Copy table to another table with an extra column
问题 I have two tables, tab1 and tab2. tab2 has all of the columns of tab1 but with an extra column for a timestamp. What I want to do is copy all of the rows from tab1 into tab2 and input the same time thae timestamp column for all rows that I insert. I can get and input the time fine, but I'm confused how to copy and insert data and fill in the last column with the timestamp for all of the rows that I inserted. So I want to do: Insert into tab2 select * from tab1 but I also want to add data for