【发布时间】:2018-07-23 15:54:49
【问题描述】:
我想在我的表 catalog_form 中搜索多个字段。使用 Concat 和 LIKES(我使用 foreach 循环)
我错过了什么?感谢您的所有帮助。
SELECT *
FROM catalog_form
WHERE CONCAT(image, acc_no, cat_no, art_type, title, mat_tech
, acquired_by, dimensions, maker_pub, place_origin
, location, description, encoded_by) LIKE '%maria%'
OR LIKE '%great%'
ORDER BY id DESC LIMIT 0, 10
【问题讨论】:
-
你有什么问题?有什么错误吗?您发布的内容应该如图所示。
-
“我错过了什么?”问题缺少表结构、示例数据、预期输出(stackoverflow.com/help/mcve)..