List:General Discussion« Previous MessageNext Message »
From:Gerald Clark Date:August 30 2001 8:29pm
Subject:Re: any sequence generator function?
View as plain text  
Add an auto_increment column of an appropriate int size.

Jaime Teng wrote:

> Hi,
> Is there a "number sequence" generator/function in
> MySQL such that if I were to execute:
> "UPDATE mytable SET id = thisfunction;"
> it will update the table mytable and set the column
> id to a numbered sequence "1,2,3,4,5,6,7,8,9....."?
> currently, i have a table with 2.5 million records and
> i want to change one of the field and sequence it and
> am doing it the hard way of updating one at a time.
> regards
> Jaime
> ---------------------------------------------------------------------
> Before posting, please check:
>   (the manual)
>           (the list archive)
> To request this thread, e-mail <mysql-thread84099@stripped>
> To unsubscribe, e-mail
> <>
> Trouble unsubscribing? Try:

Gerald L. Clark

Virtualizing MySQLMustafa Hashmi30 Aug
  • Re: Virtualizing MySQLGerald Clark30 Aug
    • any sequence generator function?Jaime Teng30 Aug
  • Re: Virtualizing MySQLMustafa Hashmi30 Aug
    • Re: Virtualizing MySQLJoshua J. Kugler30 Aug
  • Re: Virtualizing MySQLMustafa Hashmi30 Aug
    • Re: Virtualizing MySQLKyle Hayes31 Aug
  • Re: any sequence generator function?Gerald Clark30 Aug
  • Re: any sequence generator function?Chris Johnson31 Aug
  • Re: Virtualizing MySQLMustafa Hashmi6 Sep