JPA执行SQL报错,但是sql语句直接在navicat中执行成功
SELECT SQL_CALC_FOUND_ROWS
pm.id AS id,
pm.category_code AS categoryCode,
pm.category_name AS categoryName,
pm.material_name AS materialName,
pm.material_a AS materialA,
pc.classification_one AS classificationOne,
pc.classification_two AS classificationTwo,
pc.classification_three AS classificationThree
FROM
product_material_system_category pc
LEFT JOIN product_material_system_main pm ON pm.category_code = pc.category_code
WHERE
pc.classification_one LIKE '%内墙%'
OR pc.classification_two LIKE '%内墙%'
OR pc.classification_three LIKE '%内墙%'
ORDER BY
pm.category_code
LIMIT 0,
10;
SELECT
FOUND_ROWS() AS total;
帮忙看看这是怎么回事呢
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你这是两条语句了