【发布时间】:2017-03-23 13:43:07
【问题描述】:
最好的方法是什么?
select * from myTable where hostname IN ('host1-%', 'host2-%', 'host3-%')
主机名有时会以完全限定的域或简单的 host1 形式返回
【问题讨论】:
-
WHERE hostname LIKE 'host1-%' OR hostname LIKE 'host2-%' OR hostname LIKE 'host3-%'
标签: mysql