MySQL - Insert table data from another table

ZKE

i've question about insert query mysql

i want to insert from a table data from another table. here's my table :

table 1

id , name

23 , test_name

and

table 2

id, code_name , name

23 , 23 , test_name

i want insert table 2 with kode_name same value with id from table 1 i don't know how to insert with code_name same value id from table 1

how to do this?

G3ntle_Man
INSERT INTO Table2(ID, Code_Name, Name) SELECT ID, ID, Name FROM Table1

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

MySQL - Insert table data from another table

From Dev

MySQL insert into column data from another table

From Dev

Insert Data From One Table To Another - MySQL

From Dev

SQL insert data into a table from another table

From Dev

SQL insert data into a table from another table

From Dev

MySQL Insert INTO using SELECT from another table with additional data

From Dev

mysql insert with value, with selected data from another table

From Dev

Insert data from a table to another one in MySQL with where condition

From Dev

Mysql insert into with multiple id from another table

From Dev

Mysql insert column from another table

From Dev

insert multiple rows mysql from another table

From Dev

Mysql query insert from another table

From Dev

mysql insert into table select from another database

From Dev

Transfer data from one table to another on insert

From Dev

Select multiple columns from a table and insert data into another table in a different database in PHP-MySQL

From Dev

looping mysql query to get multiple rows of data from a table and insert into another table

From Dev

How to insert and retrive data from one table to another table in mysql database

From Dev

how to insert data from another table with id from my table

From Dev

MySQL - Insert into a table by querying product id from another table

From Dev

MySQL dynamic INSERT INTO denormalized table from another table

From Dev

MySql: insert into table SELECT from another table where first_table ID =another_table.id

From Dev

How to select data from a table and insert into another table?

From Dev

Trigger to insert data from source table and another table

From Dev

Insert data from column of a table and store to column another table

From Dev

How to select data from a table and insert into another table?

From Dev

Insert data from table to another table using PL/SQL

From Dev

Procedure to insert a data from one table to another table after calculations

From Dev

Insert Data From One Table to Another Table with default values

From Dev

Insert new rows into table but copy data from another row in the table

Related Related

  1. 1

    MySQL - Insert table data from another table

  2. 2

    MySQL insert into column data from another table

  3. 3

    Insert Data From One Table To Another - MySQL

  4. 4

    SQL insert data into a table from another table

  5. 5

    SQL insert data into a table from another table

  6. 6

    MySQL Insert INTO using SELECT from another table with additional data

  7. 7

    mysql insert with value, with selected data from another table

  8. 8

    Insert data from a table to another one in MySQL with where condition

  9. 9

    Mysql insert into with multiple id from another table

  10. 10

    Mysql insert column from another table

  11. 11

    insert multiple rows mysql from another table

  12. 12

    Mysql query insert from another table

  13. 13

    mysql insert into table select from another database

  14. 14

    Transfer data from one table to another on insert

  15. 15

    Select multiple columns from a table and insert data into another table in a different database in PHP-MySQL

  16. 16

    looping mysql query to get multiple rows of data from a table and insert into another table

  17. 17

    How to insert and retrive data from one table to another table in mysql database

  18. 18

    how to insert data from another table with id from my table

  19. 19

    MySQL - Insert into a table by querying product id from another table

  20. 20

    MySQL dynamic INSERT INTO denormalized table from another table

  21. 21

    MySql: insert into table SELECT from another table where first_table ID =another_table.id

  22. 22

    How to select data from a table and insert into another table?

  23. 23

    Trigger to insert data from source table and another table

  24. 24

    Insert data from column of a table and store to column another table

  25. 25

    How to select data from a table and insert into another table?

  26. 26

    Insert data from table to another table using PL/SQL

  27. 27

    Procedure to insert a data from one table to another table after calculations

  28. 28

    Insert Data From One Table to Another Table with default values

  29. 29

    Insert new rows into table but copy data from another row in the table

HotTag

Archive