I have a sql query which is like that
select *
from users
where uname="ali" and uname="veli"
but it is not worked what ı want to do is get the person whose name is "ali" and "veli" but if "ali" is not exist and "veli" is exist, the existed ones should be return. How can I do this. it is easy query but I am confusing.
Try this:
SELECT *
FROM users
WHERE uname IN ("ali", "veli")
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With