+ 23

How to insret data in A table from Another two Table

30th Jun 2017, 2:48 PM
Saurav Saini
Saurav Saini - avatar
8 Respuestas
7th Aug 2017, 8:59 PM
Worm
Worm - avatar
+ 18
You need to select the needed columns and rows Front your two Tables with a join and then insert them into your new one.
6th Aug 2017, 4:56 PM
Worm
Worm - avatar
+ 17
That ist a good idea! He should explain the use case, so he can get better help...
6th Aug 2017, 8:47 PM
Worm
Worm - avatar
+ 3
might be better to use foreign key constrain to create a table with references to the other two.
6th Aug 2017, 8:12 PM
Matthias W
+ 3
something like that.... you need key between B and C Insert into A select B.*, C.* from B left join C on B.FK = C.FK or a foreign key in A with references to B and C
7th Aug 2017, 8:02 PM
Nico 'S
Nico 'S - avatar
+ 1
INSERT INTO TABLE1 AS SELECT * FROM TABLE2
6th Dec 2017, 4:55 PM
Pooja kembhavi
Pooja kembhavi  - avatar
0
hello how are you.whats your name
10th Dec 2017, 11:30 AM
Io‎
Io‎ - avatar
0
INSERT INTO SELECT
6th Jan 2019, 7:49 PM
Harshita Srivastav
Harshita Srivastav - avatar