0
0

More than 1 year has passed since last update.

MySQLのProgrammingError

Posted at

何のエラーか探すのに困ったシリーズ。

環境:
Windows10
Python3.7(Anaconda)
MySQL

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 '99999.9e9' at line 999")

Python側のpymysqlモジュールにて、
MySQL文のLIMIT句に渡した変数が
予期せず float型 になっていたからだった。
行数だから int型 でないとダメ。

ProgrammingError:
なんて出たから、SQL文が悪いのかとずいぶん考えた。
ま、プログラミングのエラーと言えば間違いないが・・・
このエラーが出てハマった際、参考になれば幸い。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0