【发布时间】:2020-10-16 06:33:12
【问题描述】:
我想从以下域名结尾的表格中获取电子邮件地址。
@yahoomail.com
@accelerator.com
@learning.com
@cloud.vintage.com
【问题讨论】:
-
where email like '%@yahoomail.com' or email like '%@accelerator.com' ... -
这能回答你的问题吗? SQL SELECT WHERE string ends with Column
-
就像一个警告词:在大表上使用
LIKE '%(somestring)'进行“结束于”条件的搜索将非常低效且非常缓慢。不幸的是,由于带有前导%的条件,没有索引可以帮助加快速度......
标签: sql-server