Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id E713F632E94 for ; Sun, 4 Oct 2009 11:50:03 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 12387-05 for ; Sun, 4 Oct 2009 14:49:56 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from web33806.mail.mud.yahoo.com (web33806.mail.mud.yahoo.com [209.191.69.169]) by mail.postgresql.org (Postfix) with SMTP id 4F4FF632CCD for ; Sun, 4 Oct 2009 11:49:56 -0300 (ADT) Received: (qmail 51208 invoked by uid 60001); 4 Oct 2009 14:49:54 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1254667794; bh=DJqJ3OdNdN0pobYwzlSARDUsTr9OtiUZArTmfzLZ1AM=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type; b=kCPLsW/eB6m55q/Ai+3ptNFUEp+nasOa7YXC9+cYkvuWq0YKe7K//xmYaVkUFdCpzHe2kOvge+fW82DZgTgTzzSoUyc9dEoewuTwJkn6Fo1H8ntSLuW/r3Q7w4ZYpAUansxVdRX1gzYJ0OALVntFpkwITI9vJTVU9wAtv4ly3QI= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type; b=AdVkOdwINKL7Yrilxx5jBsa94orqFpBNoKHdcTAs8WoYWAB4JOIShmsiWLkxKM0LcIW7kRtSFqYnXMzj/OL9haiKpK2phCv3Kbc+3zpXBruMdxZHiZAfBbyubnVdp4FnOuD1POyaGK6zftzt+qT3GJ8gTJWLs0jvxlYxfCMPvHU=; Message-ID: <444951.51198.qm@web33806.mail.mud.yahoo.com> X-YMail-OSG: 5Xjuj9MVM1lssjZB1w6.VynVHensbFFj0E2mmCAW3V0Zwr7Do8PfsZxPFKKJ5T_cH_S0gHcP0nTLxfS9QQz5VftUG9M3lMzKg3WttGCOpS3J85Rdp6TKefPFIVzGcnyU9VVI55pjkmY8vJX.4FItp.3KtOxIDOH6XhaVeM.nYJ4mGcn_fzxpSabmTRgto5_K2TjfNDURXl0H7qQceZKJ6HQ440NMst_uGaL7UwTsPNRVYkCY6lEqdK_p7XP4kJxW8HKswU0yyZrPdWfk7.vv_9.YMTep59GPRcNjwYRqXFMlinSN4EmdurqiM3lAK6lYnO9tgpndplugdqLTGlT8xO2bdKddEbuj7kqd94s8RUuzyg5LFqyv2y5bquJw6qx_yzJ7pxmFdLtrQoE7mQFLOg-- Received: from [213.176.95.42] by web33806.mail.mud.yahoo.com via HTTP; Sun, 04 Oct 2009 07:49:54 PDT X-Mailer: YahooMailClassic/7.0.14 YahooMailWebService/0.7.347.3 Date: Sun, 4 Oct 2009 07:49:54 -0700 (PDT) From: mohammad qoreishy Reply-To: m_qoreishy@yahoo.com Subject: reading last inserted record withoud any autoincrement field To: pgsql-sql@postgresql.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-972658667-1254667794=:51198" X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.002 tagged_above=-10 required=5 tests=BAYES_50=0.001, HTML_MESSAGE=0.001 X-Spam-Level: X-Archive-Number: 200910/19 X-Sequence-Number: 33218 --0-972658667-1254667794=:51198 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable How can get last inserted record in a table without any autoincrement filed= ? I need to=A0 frequently fetch the last inserted record. If I must use the "Cursor" please explain your solution. =0A=0A=0A --0-972658667-1254667794=:51198 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable
How can get last inserted record in a table w= ithout any autoincrement filed?
I need to  frequently fetch the las= t inserted record.
If I must use the "Cursor" please explain your soluti= on.

=0A=0A --0-972658667-1254667794=:51198--