I have a table named user, having these values:
id email
1 [email protected]
2 [email protected]
Now, I need a query like :
SELECT id, email from user where email in ('[email protected]`,`[email protected]`,`[email protected]`)
As [email protected] doesn't exist in the table, I want the following results:
id email
1 [email protected]
2 [email protected]
NULL [email protected]
Any idea how to do this in MySql?