Re: how to create a sequence
Posted by: Roland Bouman
Date: July 08, 2005 04:24PM

Hi!

your'e attempting Oracle syntax here. This won't work in MySQL. Closest thing to an Oracle sequence is an AUTO_INCREMENT column:

create table t(
c int auto_increment primary key
)

Look it up in manual (CREATE TABLE syntax, 13.2.5, and Using AUTO_INCREMENT, 3.6.9)

g.luck!

Options: ReplyQuote


Subject
Views
Written By
Posted
3040
July 07, 2005 06:56AM
Re: how to create a sequence
1830
July 08, 2005 04:24PM


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.