TokyoTyrantTable::genUid

(PECL tokyo_tyrant >= 0.1.0)

TokyoTyrantTable::genUidGenerate unique id

설명

public int TokyoTyrantTable::genUid ( void )

Generates an unique id inside the table database. In table databases rows are referenced using a numeric primary key.

인수

이 함수는 인수가 없습니다.

반환값

Returns an unique id or throws TokyoTyrantException on error

예제

Example #1 TokyoTyrantTable::genUid() example

<?php
$tt 
= new TokyoTyrantTable("localhost"1122);

echo 
$tt->genUid();
?>

위 예제의 출력 예시:

4

참고

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top