How to generate sequence in MySql
I m migrating a database from oracle to MySql.The database has many unique ID fields whose datatype is VARCHAR and they r automatically generated.Problem is thatthe id is combination of nuber with a charater prefix.The number is generated in sequence for each new record. and the prefix charater defines one of its attribute.In oracle this is achived by user defined SEQUENCES. Can we implement sequences in MYSQL?
Sequences r suupported in MySql?. Remember i knw that i can do this by defining seperate field which stores the attribute information stored in the id..but i don't want to do that.Since i have to use existing codebase so i cannot change table design...THANKS IN ADVANCE.
Subject
Views
Written By
Posted
How to generate sequence in MySql
168044
March 13, 2007 08:05AM
73464
March 22, 2007 10:34PM
66986
March 26, 2007 08:49AM
53968
March 26, 2007 09:31PM
30931
April 04, 2007 03:00AM
24541
April 05, 2007 02:37AM
21628
November 10, 2008 06:40AM
26569
November 21, 2007 03:50AM
30315
January 29, 2008 08:33PM
17772
February 06, 2008 12:16PM
18544
October 15, 2008 01:03PM
12442
November 05, 2008 09:50AM
14295
November 10, 2008 06:32AM
15755
December 14, 2008 07:08AM
18582
January 23, 2009 05:38PM
8731
March 16, 2009 09:00AM
10644
March 16, 2009 09:18AM
8629
March 16, 2009 09:51AM
9515
March 16, 2009 10:23AM
8449
April 12, 2009 07:58AM
10025
April 03, 2009 03:07PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.