0

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?

4

2 回答 2

5

这取决于您使用的数据库,但类似这样:

SELECT * FROM people WHERE email LIKE "%@yahoo.com"

people您的表名和email地址列在哪里。

于 2013-11-14T18:32:32.113 回答
0
select * from table where email like '%@yahoo.com'
于 2013-11-14T18:34:15.623 回答