MySQL Forums
Forum List  »  General

MYSQL sequence
Posted by: Alexandre Salomé
Date: August 11, 2020 05:41PM

Hello,

I am trying create a sequence in Mysql 5.3 and Mysql 8 like this:


CREATE SEQUENCE SEQ_ID
START WITH 1
INCREMENT BY 1
MAXVALUE 99999999
MINVALUE 1
NOCYCLE;


I am receving the error, and I dont why:
/* Erro SQL (1064): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'SEQUENCE SEQ_ID START WITH 1 INCREMENT BY 1 MAXVALUE 99999999 MINVALUE 1 NO' at line 1 */


Any clue for help is welcome

Options: ReplyQuote


Subject
Written By
Posted
MYSQL sequence
August 11, 2020 05:41PM
August 11, 2020 07:06PM


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.