gpt4 book ai didi

MySQL : error in your SQL syntax | LIMIT 0, 25

转载 作者:行者123 更新时间:2023-11-29 05:13:52 24 4
gpt4 key购买 nike

我不明白这个错误,请大家帮帮我。为什么我收到这个错误..我的查询有问题吗?

这是错误..

#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 0, 25' at line 7

这是我的查询:

SELECT
equivalent
FROM
tb_student_record
INNER JOIN
tb_student ON tb_student_record.stud_id = tb_student.stud_id
WHERE
tb_student_record.instructor_id = 'INST-20131296'
AND tb_student_record.criteria_id = '1'
AND tb_student_record.class_record_id = '1'
AND (CONCAT(stud_fname, ' ', stud_lname) = 'Jeffrey Oliveras'
AND tb_student_record.term = 'Prelim'

最佳答案

您在 concat 函数中缺少结束括号

SELECT equivalent FROM tb_student_record INNER JOIN tb_student ON tb_student_record.stud_id=tb_student.stud_id 
WHERE tb_student_record.instructor_id = 'INST-20131296'
AND tb_student_record.criteria_id = '1'
AND tb_student_record.class_record_id = '1'
AND (CONCAT(stud_fname, ' ', stud_lname) = 'Jeffrey Oliveras' )
AND tb_student_record.term = 'Prelim'

关于MySQL : error in your SQL syntax | LIMIT 0, 25,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35798826/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com