我正在尝试查询一个包含JSON列的MySQL数据库表。QueryBuilder构建这个查询时。它抛出语法错误。Laravel代码(在控制器中):DB::table("conversations")->where('memberssyntax; check the manual that corresponds to your MySQL server vers
我对Laravel很陌生,我试着用雄辩的语言做一个字符串查询。我试图使用DB::statement,但是我一直收到查询字符串中占位符的错误。似乎我没有正确的语法,或者绑定是不实现的还是不支持的?syntax; check the manual that corresponds to your MySQL server version for the right syntax to use nearat line 1 (SQL: CREATE DATABASE test)'
这是
下面是我使用DB facade在Laravel中执行的查询。执行它时,它会抛出一个异常,即SQL语法不正确(哪里不正确?)。manual that corresponds to your MariaDB server version for the right syntax to use near 'UPDATE subscriptionsSET consumed = JSON_SET(consumed, '$.max_users', ' at line 5 (<e