Re: Unique Id generation

2008-08-13 Thread R . Nils
> Why would the auto_increment not work for you? The only case where you > would have a problem is if the last record was deleted before mysql > shutdown. If you are really concerned about this unique scenario, > insert a dummy record before shutdown to guard against it and delete > the dummy reco

Re: RE: Unique Id generation

2008-08-13 Thread R . Nils
> >I try to generate a unique id for each row in a Mysql-InnoDB Table. > >Because of many deletes I can't use an auto_increment column. > >After a Mysql restart, the next value for an auto_increment-column is > >max(auto_increment-column)+1, and I need a really unique id. > > > [JS] See if the

RE: Unique Id generation

2008-08-12 Thread Fish Kungfu
rom: Jerry Schwartz <[EMAIL PROTECTED]> >Sent: Aug 12, 2008 9:46 AM >To: [EMAIL PROTECTED], mysql@lists.mysql.com >Subject: RE: Unique Id generation > >>I try to generate a unique id for each row in a Mysql-InnoDB Table. >>Because of many deletes I can't use an

Re: Unique Id generation

2008-08-12 Thread Brent Baisley
Why would the auto_increment not work for you? The only case where you would have a problem is if the last record was deleted before mysql shutdown. If you are really concerned about this unique scenario, insert a dummy record before shutdown to guard against it and delete the dummy record after yo

RE: Unique Id generation

2008-08-12 Thread Jerry Schwartz
>I try to generate a unique id for each row in a Mysql-InnoDB Table. >Because of many deletes I can't use an auto_increment column. >After a Mysql restart, the next value for an auto_increment-column is >max(auto_increment-column)+1, and I need a really unique id. > [JS] See if the UUID() functio

Unique Id generation

2008-08-12 Thread R . Nils
Hi all, I try to generate a unique id for each row in a Mysql-InnoDB Table. Because of many deletes I can’t use an auto_increment column. After a Mysql restart, the next value for an auto_increment-column is max(auto_increment-column)+1, and I need a really unique id. My first solution looks