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

"SQLSTATE[23000]: Integrity constraint violati~..."の原因

Posted at

エラーの出た経緯

ユーザー新規登録をする際にメアドなどなどを記入して登録ボタン押した
→"SQLSTATE[23000]: Integrity constraint violati~..."のエラー発生

原因

過去に同じメアドを登録していたため、値がかぶるんですけど~っていうエラーだった。

どうやらプライマリキーが設定されているカラムで値がかぶると出てくるエラーらしい。
https://umebius.com/eccube/sqlstate23000-integrity-constraint-violation-1062-duplicate-entry-0-for-key-primary/

→同じエラーが出た投稿者さん
https://qiita.com/Halu_wimps/questions/31b3f710e974689aa264

解決方法

動作確認で過去に色々登録していたデータを、全部データベースから削除した。

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?