I’ve 2 tables A, B in MySql DB.
Table A has 2 columns (user, pass)
Table B has additional 3 columns (user, pass, date1, date2, boolean)
I want to copy data from table A and insert it to table B with default values for additional columns.
What is the best way to achieve this? (sql is preferred)
check this url
they have also posted an example below exactly like your requirement in the discussion section
hope this helps