|
update : 2015.11.03
php.shukuma.com검색:
|
TokyoTyrantTable::putKeep(PECL tokyo_tyrant >= 0.1.0) TokyoTyrantTable::putKeep — Put a new record 설명
public void TokyoTyrantTable::putKeep
( string
$key
, array $columns
)Puts a new record into the database. If the key already exists this method throws an exception indicating that the records exists. 인수
반환값Returns the primary key and throws TokyoTyrantException on error. 예제
Example #1 TokyoTyrantTable::putKeep() example
<?php위 예제의 출력 예시:
array(2) {
["column1"]=>
string(9) "some data"
["column2"]=>
string(9) "more data"
}
Existing record! Not modified
array(2) {
["column1"]=>
string(9) "some data"
["column2"]=>
string(9) "more data"
}
|