3
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

SQLSTATE[22007]: Invalid datetime format: 1366 Incorrect integer value:のエラーが出たとき

Posted at

SQLでこんなふうになっているときに出るエラー。
insert into t_examples (company_id, company_name, created_at) values (1, , '2018-12-05');

nullをちゃんと指定すれば直る。
insert into t_examples (company_id, company_name, created_at) values (1, null , '2018-12-05');

3
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
3
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?