Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
So I have at table in SQL and I want to list only people who have an email at yahoo.com
for example:
EMAIL ------------ 1234@yahoo.com djasjdkl@gmail.com 414353@yahoo.com 12345@gmail.com 78923@msn.com 390214@yahoo.com
how can i do that?
这取决于您使用的数据库,但类似这样:
SELECT * FROM people WHERE email LIKE "%@yahoo.com"
people您的表名和email地址列在哪里。
people
email
select * from table where email like '%@yahoo.com'