Home > Backend Development > PHP Tutorial > 空 MYSQL 表 PHP-PDO 插入数据总是提示重复

空 MYSQL 表 PHP-PDO 插入数据总是提示重复

WBOY
Release: 2016-06-06 20:41:30
Original
1011 people have browsed it

[10-Nov-2014 13:26:31 Asia/Shanghai]
PHP Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'o5z0Cj3s-fIVcmUnfbA0cc' for key 'openi'' in W:\rcode_s2.php:69

为什么? 表示空的, 也运行过 TRUNCATE

回复内容:

[10-Nov-2014 13:26:31 Asia/Shanghai]
PHP Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'o5z0Cj3s-fIVcmUnfbA0cc' for key 'openi'' in W:\rcode_s2.php:69

为什么? 表示空的, 也运行过 TRUNCATE

PHP的致命错误:未捕获的异常' PDOException的消息' SQLSTATE [ 23000 ]:违反完整性约束:1062重复的条目的o5z0cj3s-fivcmunfba0cc”键“开放”W:\ rcode_s2 PHP:69。 表示空的??不会吧??

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template