题解 | #查看学校名称中含北京的用户#
查看学校名称中含北京的用户
https://www.nowcoder.com/practice/95d9922b1e2a49de80daa491889969ee
# # 使用like关键字进行模糊查询:%表示任意个任意字符,_表示一个任意字符 # select device_id, age, university # from user_profile # where university like "%北京%"; # 使用regexp关键字进行正则匹配:.表示一个任意字符,*表示匹配0个或任意多个 select device_id, age, university from user_profile where university regexp ".*北京.*";
神州信息成长空间 150人发布