• <legend id='jXvsA'><style id='jXvsA'><dir id='jXvsA'><q id='jXvsA'></q></dir></style></legend>
        <bdo id='jXvsA'></bdo><ul id='jXvsA'></ul>

      <small id='jXvsA'></small><noframes id='jXvsA'>

        <i id='jXvsA'><tr id='jXvsA'><dt id='jXvsA'><q id='jXvsA'><span id='jXvsA'><b id='jXvsA'><form id='jXvsA'><ins id='jXvsA'></ins><ul id='jXvsA'></ul><sub id='jXvsA'></sub></form><legend id='jXvsA'></legend><bdo id='jXvsA'><pre id='jXvsA'><center id='jXvsA'></center></pre></bdo></b><th id='jXvsA'></th></span></q></dt></tr></i><div id='jXvsA'><tfoot id='jXvsA'></tfoot><dl id='jXvsA'><fieldset id='jXvsA'></fieldset></dl></div>
      1. <tfoot id='jXvsA'></tfoot>

        编程错误:(1064 ....)

        时间:2023-06-06
        1. <tfoot id='beLaD'></tfoot>
        2. <small id='beLaD'></small><noframes id='beLaD'>

              • <bdo id='beLaD'></bdo><ul id='beLaD'></ul>
                <legend id='beLaD'><style id='beLaD'><dir id='beLaD'><q id='beLaD'></q></dir></style></legend>

                    <tbody id='beLaD'></tbody>
                • <i id='beLaD'><tr id='beLaD'><dt id='beLaD'><q id='beLaD'><span id='beLaD'><b id='beLaD'><form id='beLaD'><ins id='beLaD'></ins><ul id='beLaD'></ul><sub id='beLaD'></sub></form><legend id='beLaD'></legend><bdo id='beLaD'><pre id='beLaD'><center id='beLaD'></center></pre></bdo></b><th id='beLaD'></th></span></q></dt></tr></i><div id='beLaD'><tfoot id='beLaD'></tfoot><dl id='beLaD'><fieldset id='beLaD'></fieldset></dl></div>
                • 本文介绍了编程错误:(1064 ....)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  限时送ChatGPT账号..

                  我认为这对很多人来说似乎是基本的,但是,我很可能被卡住了.

                  I think this my seem elementary to a lot of people and it likely is, however, i am stuck.

                  我正在从雅虎获取一些数据并尝试通过 python 将其插入到 Mysql 中,我在很多场合都这样做过......除了今天早上.

                  I am taking some data from Yahoo and attempting to insert it into Mysql through python which i have done on many occassions...apart from this morning.

                  这是代码...

                  result = ystockquote.get_price_book_ratio('aap')
                  cursor.execute("""UPDATE uk SET pricebook = %s, WHERE ID = %s""", (result,6))
                  

                  由于某种原因我收到此错误

                  I get this error for some reason

                  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 'WHERE ID = 6' at line 1")
                  

                  我也试过...

                      cursor.execute("""UPDATE uk SET pricebook = %s, WHERE symbol = %s""", (result,'aap'))
                  

                  这也给出了同样的错误信息.

                  That too gave the same error message.

                  推荐答案

                  您的查询无效,%s 后有多余的,":

                  Your query is invalid, you have a redundant "," after %s:

                  cursor.execute("""UPDATE uk SET pricebook = %s, WHERE ID = %s""", (result,6))
                                                                ↑
                  

                  删除它.

                  这篇关于编程错误:(1064 ....)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:ValidateRequest 错误或 SQL Server 错误? 下一篇:#1005 - 无法创建表“table_name"(错误号:150)

                  相关文章

                  最新文章

                  <tfoot id='0rTKK'></tfoot>

                • <i id='0rTKK'><tr id='0rTKK'><dt id='0rTKK'><q id='0rTKK'><span id='0rTKK'><b id='0rTKK'><form id='0rTKK'><ins id='0rTKK'></ins><ul id='0rTKK'></ul><sub id='0rTKK'></sub></form><legend id='0rTKK'></legend><bdo id='0rTKK'><pre id='0rTKK'><center id='0rTKK'></center></pre></bdo></b><th id='0rTKK'></th></span></q></dt></tr></i><div id='0rTKK'><tfoot id='0rTKK'></tfoot><dl id='0rTKK'><fieldset id='0rTKK'></fieldset></dl></div>

                  1. <legend id='0rTKK'><style id='0rTKK'><dir id='0rTKK'><q id='0rTKK'></q></dir></style></legend>
                  2. <small id='0rTKK'></small><noframes id='0rTKK'>

                        <bdo id='0rTKK'></bdo><ul id='0rTKK'></ul>