realbasic-nug
[Top] [All Lists]

Re: Database LASTROWID

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Database LASTROWID
From: Marco Bambini <marco at sqlabs dot net>
Date: Sun, 1 Jul 2007 00:45:45 +0200
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <52B89AD4-E2C8-4C90-AC42-9B81077390CC at installfactory dot com>
Hi Jamie,

you get the rowid of the row just inserted, specifically it returns  
the rowid of the last row insert from your current connection to the  
database.

---
Marco Bambini
http://www.sqlabs.net
http://www.sqlabs.net/blog/
http://www.sqlabs.net/realsqlserver/



On Jun 30, 2007, at 7:17 PM, Jamie Lay wrote:

> Hello All,
>
> If I perform an INSERT then call LASTROWID, am I assured
> of getting the rowid of the row I just inserted or can someone
> insert a row between my two calls and thereby give me the
> wrong rowid?   Is there a better way of accomplishing this?
>
> Thanks,
>
> Jamie
>
> Software Factory, LLC
> Sales     800-539-1780
> Support     706-632-3763
> Fax         706-632-6498
> www.installfactory.com
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>