Extracted from Pike v7.8 release 866 at 2016-11-06.
pike.ida.liu.se
[Top]
Sql
Sql.tds

Method Sql.tds()->insert_id()


Method insert_id

int insert_id()

Description

Fetch the identity of the last insert (if available).

This performs the query "SELECT @@identity AS insert_id".

Returns

Returns the identity of the last insert as an integer if available. Otherwise returns 0 (zero).