【发布时间】:2014-08-20 15:38:27
【问题描述】:
indie = '''CREATE FULLTEXT yay ON panda (Question, Answer);'''
cursor.execute(indie)
我已经与服务器、数据库和表建立了连接,并且一切正常,但由于某种原因,它不会在表 panda 中的 Question 和 Answer 列上创建 yay 索引。 我得到了错误:
_mysql_exceptions.ProgrammingError: (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 'yay ON panda (Question, Answer)' at line 1")
我已经检查了大多数解决此问题的方法,但就是不明白。谁能帮忙?
【问题讨论】:
-
查询的语法不正确,您是否使用 MySQL 客户端实际测试过您的查询?
标签: python mysql sql python-2.7 mysql-python