mysql在字符里找字符串的示例:
例如:user表设id为主键,phone为字段。该表为用户电话表。
想查看以电话号码138开头的电话,代码如:
select id, phonefrom userwhere phone like '138%'
from user
where phone like '138%'