Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/arduino/2.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
Python 访问表时出现Django Sql错误1064_Python_Mysql_Sql_Django_Database - Fatal编程技术网

Python 访问表时出现Django Sql错误1064

Python 访问表时出现Django Sql错误1064,python,mysql,sql,django,database,Python,Mysql,Sql,Django,Database,我无法访问数据库中的一个表。我甚至不能自己删除这个表,所以我不知道该怎么做。以下是错误: ERROR 1064 (42000): 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 'match' at line 1 因此,每当我在该表上执行操作(描述、选择、删除等)时,都会出现此

我无法访问数据库中的一个表。我甚至不能自己删除这个表,所以我不知道该怎么做。以下是错误:

ERROR 1064 (42000): 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 'match' at line 1
因此,每当我在该表上执行操作(描述、选择、删除等)时,都会出现此错误


我已经从代码中删除了模型,但这并没有从数据库中删除该表

这是一种推测。但是错误是指
匹配
。这可能不明显,但在MySQL中,
match
。它用于全文搜索

如果您有一个名为
match
的列或表,并且引用该列或表时没有转义字符(反勾号),则可能会出现如下错误


要做的事情是修复表/列的名称,使其与保留字不冲突。

您需要包括导致问题的生成查询。这就是问题所在!非常感谢。