1
0
mirror of https://github.com/php/doc-it.git synced 2026-03-26 08:32:15 +01:00
Files
archived-doc-it/reference/pgsql/functions/pg-last-oid.xml
Richard Quadling 20cabe269f W/S, Tab removal
git-svn-id: https://svn.php.net/repository/phpdoc/it/trunk@317864 c90b9560-bf6c-de11-be94-00142212c4b1
2011-10-07 13:56:04 +00:00

65 lines
2.2 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<!-- EN-Revision: n/a Maintainer: cucinato Status: ready -->
<!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.82 -->
<!-- CREDITS: fabio,cortesi,denny -->
<refentry xml:id="function.pg-last-oid" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>pg_last_oid</refname>
<refpurpose>Restituisce l'oid dell'ultimo oggetto</refpurpose>
</refnamediv>
<refsect1>
<title>Descrizione</title>
<methodsynopsis>
<type>int</type><methodname>pg_last_oid</methodname>
<methodparam><type>resource</type><parameter>risultato</parameter></methodparam>
</methodsynopsis>
<para>
<function>pg_last_oid</function> è utilizzato per recuperare
l'<varname>oid</varname> assegnato ad una tupla inserita (record), se
la risorsa risultato deriva dall'ultimo comando inviato attraverso
<function>pg_query</function>, e se quest'ultimo è un SQL INSERT. Restituisce un
intero positivo se esiste un <varname>oid</varname> valido. Restituisce
invece &false; in caso di errore o se l'ultimo comnado inviato da
<function>pg_query</function> non era un INSERT, oppure se l'INSERT ha
fallito.
</para>
<para>
Il campo OID è diventato opzionale dal PostgreSQL 7.2. Quando
il campo OID non è definito in una tabella, il programmatore deve utilizzare
<function>pg_result_status</function> per controllare se il record
è stato inserito con successo.
</para>
<note>
<para>
Questa funzione si chiamava <literal>pg_getlastoid()</literal>.
</para>
</note>
<para>
Vedere anche <function>pg_query</function> e
<function>pg_result_status</function>
</para>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->