Subject | Re: [firebird-support] Re: Record numbering |
---|---|
Author | Martijn Tonies |
Post date | 2006-07-14T09:13:38Z |
> you need some user-dedicated or terminal-dedicated generators to doUsing generators for this purpose is NOT multi-user safe.
> this.
>
> create generator JASA_RN -- jasa's row numarator
>
>
> you need to clean its value before use it each time.
> select gen_id(JASA_RN,-GEN_ID(JASA_RN,0)) from rdb$database;
>
> then:
>
> select gen_id(JASA_RN,1), myfield1, myfield2
> from mytable
> where mycontitions
Martijn Tonies
Database Workbench - development tool for Firebird and more!
Upscene Productions
http://www.upscene.com
My thoughts:
http://blog.upscene.com/martijn/
Database development questions? Check the forum!
http://www.databasedevelopmentforum.com