Re: How to extract emails from table?
It's not really as simple as it first looks.
The SQL command that you want is
SELECT emails
FROM records
WHERE username in ("peter", "william" )
You need quotes around the usernames, which you will have to add in via some code.
Exactly how you acheive this, depends on what you are using to accept input from the user.
|