update : 2015.11.03
php.shukuma.com검색:
|
The MongoDuplicateKeyException class(PECL mongo >= 1.5.0) 소개Thrown when attempting to insert a document into a collection which already contains the same values for the unique keys. 클래스 개요예제Example #1 Catching MongoDuplicateKeyException
<?php 위 예제들의 출력 예시: localhost:27017: insertDocument :: caused by :: 11000 E11000 duplicate key error index: test.test.$_id_ dup key: { : 1 } |