I want to do something like this:
My tb_b:
---------------
B | C // Columns
---------------
'y' | 'z' // row
---------------
EX: INSERT INTO tb_a(a,b,c) VALUES ('x',SELECT * from tb_b)
I want this result:
My tb_a:
-----------------
A | B | C // Columns
-----------------
'x' | 'y' | 'z' // row
-----------------
How to Insert into table a data and selected rows from tb_b?
INSERT INTO tb_a (a, b, c)
SELECT 'x', tb_b.B, tb_b.C FROM tb_b
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With