# 正则表达式 Joe 想要找出 goods 表中所有名称包含牛奶的冰激凌,他应该怎么写这个查询? 点击进入[MySQL实战练习环境](https://mydev.csdn.net/product/pod/new?image=cimg-centos7-skilltreemysql&connect=auto&create=auto&utm_source=skill)。 ## 答案 ```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 所有都不对