0

Was creating a sequence that basically auto increments by 10. Tried to run it, but it gave the error

SQL command not properly ended

Not sure where I went gone wrong here, and I've been at this problem for a while, analyzing for spelling errors, adding commas even though sequence creations for oracle don't need commas, checking for spaces, etc. Yet no success.

What exactly is the problem with this code?

CREATE SEQUENCE emplevel_seq
MINVALUE 1
NO MAXVALUE
START WITH 1
INCREMENT BY 10
CACHE 10;

1 Answer 1

1

The syntax is:

CREATE SEQUENCE syntax

You want NOMAXVALUE rather than NO MAXVALUE.

Sign up to request clarification or add additional context in comments.

2 Comments

Tried it and it worked, thank you man. Weird part about the "NO MAXVALUE" bit is that I found it like that on some Oracle SQL explanation site. Thanks for showcasing the entire diagram relating to the commands though
"Thanks for showcasing the entire diagram relating to the commands" Hopefully this will have taught you the value of checking the documentation yourself.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.