Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/database/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php SQLSTATE[42000]:语法错误或访问冲突:1064您的SQL语法有错误;拉维尔_Php_Database_Laravel - Fatal编程技术网

Php SQLSTATE[42000]:语法错误或访问冲突:1064您的SQL语法有错误;拉维尔

Php SQLSTATE[42000]:语法错误或访问冲突:1064您的SQL语法有错误;拉维尔,php,database,laravel,Php,Database,Laravel,因此,我尝试在查询中添加新行,但不幸的是,我遇到了以下错误: SQLSTATE[42000]:语法错误或访问冲突:1064您有 SQL语法错误;检查与您的产品相对应的手册 MariaDB服务器版本,以获取要在“FROM”附近使用的正确语法 职业规划与解决方案 我要补充的是: career_solutions_certification as certification, INNER JOIN certification ON career_solutions_certification.id

因此,我尝试在查询中添加新行,但不幸的是,我遇到了以下错误:

SQLSTATE[42000]:语法错误或访问冲突:1064您有 SQL语法错误;检查与您的产品相对应的手册 MariaDB服务器版本,以获取要在“FROM”附近使用的正确语法 职业规划与解决方案

我要补充的是:

career_solutions_certification as certification,

INNER JOIN certification
ON career_solutions_certification.id = career_solutions.certification

 $career_solution->topic_certification_id = $request['topic_certification_id'];$career_solution->save();
这是我的密码

我的表格是
career\u solutions\u certification
/column
id
category

career_solutions_certification.category as certification

可能没有-,

选择列后,会有额外的逗号

Wrong : career_solutions_certification.category as certification**,**



Correct : career_solutions_certification.category as certification

您在
career\u solutions\u certification.category中有一个额外的逗号作为certification,
谢谢:)所以最后一个应该每次都不带逗号?是的。查询的最后一列中的逗号不正确
Wrong : career_solutions_certification.category as certification**,**



Correct : career_solutions_certification.category as certification