题解 | #查看学校名称中含北京的用户#
查看学校名称中含北京的用户
https://www.nowcoder.com/practice/95d9922b1e2a49de80daa491889969ee
select device_id,age,university from user_profile where university like '%北京%'
考察通配符和like操作符,like操作符用来查找那些不确定的行。
通配符有两种:
- %可以代替多个字符
- _ 只可以代替一个字符
查看学校名称中含北京的用户
https://www.nowcoder.com/practice/95d9922b1e2a49de80daa491889969ee
select device_id,age,university from user_profile where university like '%北京%'
考察通配符和like操作符,like操作符用来查找那些不确定的行。
通配符有两种:
相关推荐