downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

TokyoTyrantTable::get> <TokyoTyrantTable::add
[edit] Last updated: Fri, 25 May 2012

view this page in

TokyoTyrantTable::genUid

(PECL tokyo_tyrant >= 0.1.0)

TokyoTyrantTable::genUid一意な id を生成する

説明

public int TokyoTyrantTable::genUid ( void )

一意な id をテーブルデータベースに生成します。 テーブルデータベース内での行の参照は、数値の主キーを使って行います。

パラメータ

この関数にはパラメータはありません。

返り値

一意な id を返します。エラー時には TokyoTyrantException をスローします。

例1 TokyoTyrantTable::genUid() の例

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

echo 
$tt->genUid();
?>

上の例の出力は、 たとえば以下のようになります。

4

参考



add a note add a note User Contributed Notes TokyoTyrantTable::genUid
There are no user contributed notes for this page.

 
show source | credits | sitemap | contact | advertising | mirror sites