I want to select many columns from many tables without foreign key
-1
votes
2
answers
2113
views
I have three tables, and I want to fetch the three table data without a foreign key.
Say I have a table product_1 which contains (id, name) and table product_2 contain (id, name, price).
I want to select the columns of the two tables in one query.
I am asking if there are any MySQL query to select many columns from many tables?
This is my code:
SELECT name FROM product1 AND price FROM product2;
Asked by znzoony
(1 rep)
Jan 23, 2022, 02:23 PM
Last activity: Jan 24, 2022, 06:21 PM
Last activity: Jan 24, 2022, 06:21 PM