第一种方法select from user where name like ‘%’||’张’||’%’;第二种方法select from user where name like ‘%张%’;第三种方法select * from user where name like concat(concat(‘%’,’张’),’%’)
参考博客:https://blog.csdn.net/lonely_dog/article/details/74171314