# 正则表达式 Joe 想要找出 goods 表中所有名称包含牛奶的冰激凌,他应该怎么写这个查询?
点击进入[MySQL实战练习环境](https://mydev.csdn.net/product/pod/new?image=cimg-centos7-skilltreemysql&connect=auto&create=auto&utm_source=skill){target="_blank"}。 * `show databases;` 列出所有数据库 * `show tables;` 列出所有表 ## 答案 ```sql select * from goods where name regexp '牛奶.*冰激凌'; ``` ## 选项 ### A ```sql select * from goods where name like '牛奶%冰激凌' ``` ### B ```sql select * from goods where name like '牛奶.*冰激凌'; ``` ### C ```sql select * from goods where name regexp '牛奶冰激凌'; ``` ### D 所有都不对