+ 11

Can we insert data into two different tables using mysql/sql ?

20th Oct 2016, 11:28 AM
Nareg
Nareg - avatar
6 odpowiedzi
+ 6
make two queries 😉
22nd Oct 2016, 1:34 PM
Klodian Lula
Klodian Lula - avatar
+ 3
no
21st Oct 2016, 11:53 AM
imaqtpie
imaqtpie - avatar
0
yes you can using MySQLi not the legacy MySQL
3rd Nov 2016, 10:56 PM
Hasan Al-Yazidi
Hasan Al-Yazidi - avatar
0
yes u can
5th Jan 2017, 3:18 PM
Taha Malik
Taha Malik - avatar
0
Do you mean it needs in one transaction?
3rd Feb 2017, 5:14 AM
이진승
이진승 - avatar
0
I would run the insert for one table and then use search and replace on the table name using ctrl+h as long as the columns are the same name otherwise you have to do a search and replace on the column names too. once you have completed the search and replace rerun the query
11th Feb 2017, 6:12 PM
Luke T
Luke T - avatar