insert data from one table to another in mysql

后端 未结 10 570
深忆病人
深忆病人 2020-11-29 18:39

i want to read all data from one table and insert some data in to another table. my query is

  INSERT INTO mt_magazine_subscription ( 
      magazine_subscr         


        
10条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-11-29 19:38

    Actually the mysql query for copy data from one table to another is

    Insert into table2_name (column_names) select column_name from table1
    

    where, the values copied from table1 to table2

提交回复
热议问题