标签: mysql sql regex
我有两个表phone and phone_last_ten(这包含原始last ten digits列的phone。
phone and phone_last_ten
last ten digits
phone
我想查找一个数字列表,每个数字都与数据库中电话号码的后十位数相匹配。
我让它在#4快照中工作,但由于无法使用索引,因此性能非常糟糕。
#4
答案 0 :(得分:0)
应该使用IN关键字 感谢irc.freenode.com上的RhodiumToad
IN