Answer the question
In order to leave comments, you need to log in
How to select from two MySQL tables?
I have two tables
product (id, name, price, description)
wishlist (product_id, user_id)
I need to select all records from the product table and add the key `inlist` 1 or 0, depending on whether there is a record with wishlist.product_id =product.id
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question