2011年3月13日日曜日

MYSQL on windowsのINSERTで1366 Incoorect integer

MYSQL on WindowsのINSERTで以下のエラー
”1366 Incorrect integer value:"for column "フィールド名" at row 1”
がでたら、C:\Program Files\MySQL\MySQL Server 5.0の「my.ini」を開いて、sqlmode="STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION" という文をコメントアウトすればよい。

If you had the error ”1366 Incorrect integer value:"for column "field-name" at row 1” when using the INSERT of MYSQL on Windows, comment out  sqlmode="STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION" in my.ini at C:\Program Files\MySQL\MySQL Server 5.0