我有两列访问和访问序列,
Example table
Visit Visit_sequence
1 43:65:34:21:343
2 22:78:113:37
3 43:465:72:21:1187:542
The semi colon is present in the field.
现在如果我想检查一个访问是否有包含数字 43、65 和 21 的访问序列。我应该使用什么条件(最短条件)?
如果我写
case when visit_sequence like '%:43:%:65:%:21:%'
或者
case when visit_sequence like '%43%:%65%:%21%'
这些肯定行不通。我不需要整个代码,只需要like
.