| ユーザフォーラムで議論/質問 | マニュアル検索 | ハイライト | ハイライトオフ | ポータル | php spot |
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. クラス概要例例1 Catching MongoDuplicateKeyException
<?php 上の例の出力は、 たとえば以下のようになります。 localhost:27017: insertDocument :: caused by :: 11000 E11000 duplicate key error index: test.test.$_id_ dup key: { : 1 } |
各種マニュアル:
PHPマニュアル |
PEARマニュアル |
Smarty(英語)マニュアル |
PHP-GTKマニュアル |
「The MongoDuplicateKeyException class」をGoogle検索
|