Answer the question
In order to leave comments, you need to log in
How to return successfully found values if no other values are found in the database?
For example, there is a request:
SELECT s1.id AS sq_id, s1.name AS t1_name, s2.id AS t2_id, s2.name AS t2_name
FROM `list` AS s1
INNER JOIN `list` AS s2 ON s2.name = "XXX"
WHERE s1.name = "YYY";
Answer the question
In order to leave comments, you need to log in
MySQL OUTER JOIN is not supported. can be emulated via LEFT JOIN ... UNION ... RIGHT JOIN.
Isn't it easier to choose separately for XXX and separately for YYY?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question