使用正则表达式

1
select uid from user where username regexp '';

搜索两个串之一

1
select uid from user where username regexp '|'

匹配字符类