无法在mysql中使用引号加载数据

时间:2014-06-27 12:43:32

标签: python mysql

我需要加载一个包含引号的字符串,如下所示。使用mysqldb python包加载数据......

Value = " all leading to the epic "Zero Year." "

错误

_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 \'Zero Year."" 

如何加载包含引号的字符串......

1 个答案:

答案 0 :(得分:1)

您是否尝试使用转义字符,即“所有通往史诗”的零年。\“”