This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Apache Derby Sql

 
Amandeep Singh
Ranch Hand
Posts: 850
  • 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.
 
Christophe Verré
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