# 正则表达式 Joe 想要找出 goods 表中所有名称包含牛奶的冰激凌,他应该怎么写这个查询? ## 答案 ```mysql select * from goods where name regexp '牛奶.*冰激凌'; ``` ## 选项 ### A ```mysql select * from goods where name like '牛奶%冰激凌' ``` ### B ```mysql select * from goods where name like '牛奶.*冰激凌'; ``` ### C ```mysql select * from goods where name regexp '牛奶冰激凌'; ``` ### D 所有都不对