mysql在字符里找字符串的示例:
例如:user表設id為主鍵,phone為字段。該表為用戶電話表。
想查看以電話號碼138開頭的電話,代碼如:
select id, phonefrom userwhere phone like '138%'
from user
where phone like '138%'