Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I use SEQUENCE with OrientDB 2.2 #22

Open
nambhd opened this issue Jun 20, 2016 · 1 comment
Open

How can I use SEQUENCE with OrientDB 2.2 #22

nambhd opened this issue Jun 20, 2016 · 1 comment
Labels

Comments

@nambhd
Copy link
Contributor

nambhd commented Jun 20, 2016

http://orientdb.com/docs/2.2/Sequences-and-auto-increment.html
I can't not run this statement:
DB::statement("CREATE SEQUENCE idseq");
And then, when I create or update record, how to SET id = sequence('idseq').next().

@aligin
Copy link

aligin commented Aug 15, 2016

Use CREATE SEQUENCE idseq TYPE ORDERED.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants