select device_id,age,university from user_profile where university like '%北京%';
select device_id,age,university
from user_profile
where university like '%北京%'; /LIKE
是用于模糊匹配的关键字。%
是通配符,表示任意字符序列(包括空字符序列 )。%北京%
表示只要 university
字段的值中包含 “北京” 这两个字即可,无论在什么位置。