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:
>    http://www.mysql.com/manual.php   (the manual)
>    http://lists.mysql.com/           (the list archive)
> 
> To request this thread, e-mail <mysql-thread84099@stripped>
> To unsubscribe, e-mail
> <mysql-unsubscribe-gerald_clark=suppliersystems.com@stripped>
> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php


-- 
Gerald L. Clark
gerald_clark@stripped

Thread
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