sql模糊查询查询多个关键字

xiaoxiao2021-02-28  41

可以用or或者and关键字连接多个条件:

select * from usertable t where t.name like '%zhang%' and t.mobile like '5555%' or t.age like '2%'
转载请注明原文地址: https://www.6miu.com/read-800138.html

最新回复(0)