3
I want my query to return only the first record of the first table (if there is data in it), because the second table has no repeated data.
But he returns this mistake:
Error Code: 1221. Incorrect Usage of UNION and LIMIT
My code:
SELECT administradores_id FROM adm LIMIT 1
UNION
SELECT usuarios_id FROM user;
If you want only the first record of the first table, why do Union?
– Woss