Re: mysql query for next unique ID

2002-07-01 Thread Gordon Burditt
>Does anybody know if there is a function to retrieve the next unique ID >number for a record to be made in the future? I believe you can reliably allocate sequence numbers from a "sequence table" (a table used only to dole out sequence numbers) like this: create table sequence ( seq int not nul

Re: mysql query for next unique ID

2002-07-01 Thread Egor Egorov
W., Monday, July 01, 2002, 5:29:41 PM, you wrote: WE> Does anybody know if there is a function to retrieve the next unique ID WE> number for a record to be made in the future? Nope. -- For technical support contracts, goto https://order.mysql.com/?ref=ensita This email is sponsored by En

Re: mysql query for next unique ID

2002-07-01 Thread Tod Harter
; Does anybody know if there is a function to retrieve the next unique ID > number for a record to be made in the future? > > > thx. Wilbert > > mysql query for next unique ID > > - > Pas de Deux > Van Mierisstraat 25 > 2526 NM Den Haag > tel

Re: mysql query for next unique ID

2002-07-01 Thread Richard Brenner
Try this query: SELECT yourcolumn+1 FROM yourtable ORDER BY id desc LIMIT 1; greetings, richard - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (t

mysql query for next unique ID

2002-07-01 Thread W. Enserink
Hi all, Does anybody know if there is a function to retrieve the next unique ID number for a record to be made in the future? thx. Wilbert mysql query for next unique ID - Pas de Deux Van Mierisstraat 25 2526 NM Den Haag tel 070 4450855 fax 070 4450852 http