This week's book giveaway is in the Cloud/Virtualization forum.
We're giving away four copies of Kubernetes in Action and have Marko Luksa on-line!
See this thread for details.
Win a copy of Kubernetes in Action this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Apache Derby Sql  RSS feed

 
Ranch Hand
Posts: 856
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
create sequence user_sequence start with 1 increment by 10

i want to create sequence in Apache Derby Database. Running this query give's me error-

Error: Syntax error: Encountered "sequence" at line 1, column 8.
SQLState: 42X01
ErrorCode: -1


Cananybody let me know proprer syntax query for Derby.
 
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Derby does not support sequences like Oracle, but it supports identity columns.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!