Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
PHP: fbsql_insert_id - Manual
[go: Go Back, main page]

PHP  
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
search for in the  
<fbsql_hostnamefbsql_list_dbs" width="11" height="7"/>
view the version of this page
Last updated: Sat, 06 May 2006

fbsql_insert_id

(PHP 4 >= 4.0.6, PHP 5)

fbsql_insert_id --  直近の INSERT 処理により生成された ID を得る

説明

int fbsql_insert_id ( [resource link_identifier] )

fbsql_insert_id() は、指定した link_identifier を用いた直近の INSERT クエリにおいて、DEFAULT UNIQUE 定義されているカラムで生成された ID を返します。 link_identifier が指定されない場合、 直近にオープンされたリンクが使用されます。

fbsql_insert_id() は、直近のクエリが DEFAULT UNIQUE 値を生成していない場合に 0 を返します。 後のためにこの値を保存する必要がある場合、この値を生成するクエリの 直後に fbsql_insert_id() をコールするようにしてください。

注意: FrontBase SQL関数 fbsql_insert_id() の値は 直近に生成された DEFAULT UNIQUE の値を常に含み、 クエリ間でリセットすることはありません。



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

<fbsql_hostnamefbsql_list_dbs" width="11" height="7"/>
 Last updated: Sat, 06 May 2006
show source | credits | sitemap | contact | advertising | mirror sites 
Copyright © 2001-2006 The PHP Group
All rights reserved.
This mirror generously provided by: PacketBusiness, Inc.
Last updated: Tue Sep 5 06:21:31 2006 JST