MySQL多字段模糊查询

SELECT * FROM student WHERE CONCAT(name,class_id,description) LIKE ‘%关键字%’

模糊查询student表中name,class_id,description中包关键字的数据
参考:https://blog.csdn.net/yaoyao9565/article/details/51305854

猜你喜欢

转载自blog.csdn.net/weixin_39973810/article/details/82178812