判断 name 字段中是否包含字符串 “aaa”: select * from temp where locate("aaa", name) > 0; locate(字符串,字段名),如果包含,返回大于0的index位置;否则,返回0;