InstantDB Project
About InstantDB
Project Mail Lists
Short History
Reporting Bugs
Screen Shots
3rd Party Examples
FAQs

Software
Downloads
Documentation
CVS Repositories
Roadmap
License

About Enhydra.org
Who We Are
News, Articles & Events
Getting Involved
Contact Us

Community
Demos
Contributions
Resources
Case Studies
On The Edge! -NEW-
Commercial Vendors


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: InstantDB: AUTO INCREMENT


Jonathon

>I'm new to the concept of AUTO INCREMENT.  I assume this increments on
>insert, but not on update, like for an arbitrary primary key.  The
>documentation I was looking at says nothing about how it acts.

Yes - that's right. It saves you from having to keep track of things like
PKs in your application, although in fact any column can be an auto
increment column.

>When I insert a new row, how do I know which row I just inserted?  IOW, how
>do I select the row I just inserted?

InstantDB has a proprietary extension:

Object idbConnection.getLastValueInserted(String tableName, String
columnName)

that does this. See

http://instantdb.enhydra.org/software/documentation/jdbc.html

for details.

>Also, Is this a SQL92 standard?

No. AFAIK, there is no standard way of supplying auto values or determining
the last inserted.

Regards

Peter Hearty
Lutris Technologies UK Ltd.
-----Original Message-----
From: Jonathan Carlson <jcarlson@is.com>
To: 'instantdb@enhydra.org' <instantdb@enhydra.org>
Date: 28 July 2000 01:45
Subject: InstantDB: AUTO INCREMENT


>
>
>
>Any help would be greatly appreciated.  After I get through the learning
>curve, this is going to be a really cool db!
>
>Thanks!
>
>Jonathan
>
>Jonathan Carlson,  Software Developer
>jcarlson@is.com
>
>Such ever was loves way: to rise, it stoops.
>     - Robert Browning
>
>
>
>---------------------------------------------------------------------------
--
>To unsubscribe from this mailing list, send email to majordomo@enhydra.org
>with the text "unsubscribe instantdb" in the body of the email.
>If you have other questions regarding this mailing list, send email to
>the list admin at owner-instantdb@enhydra.org.
>
>


-----------------------------------------------------------------------------
To unsubscribe from this mailing list, send email to majordomo@enhydra.org
with the text "unsubscribe instantdb" in the body of the email.
If you have other questions regarding this mailing list, send email to
the list admin at owner-instantdb@enhydra.org.