This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
The moose likes JDBC and Relational Databases and the fly likes Cloudscape  Create Sequence Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "Cloudscape  Create Sequence " Watch "Cloudscape  Create Sequence " New topic
Author

Cloudscape Create Sequence

satish gutta
Greenhorn

Joined: Oct 13, 2006
Posts: 4
Hi all,

This is the syntax i am trying to use to create sequence for pkcolumn of table.
CREATE SEQUENCE PORTAL.KEY_ID START WITH 1 INCREMENT BY 1 CACHE 20;
I am getting the following error upon execution.


Starting execution

CREATE SEQUENCE PORTAL.KEY_ID START WITH 1 INCREMENT BY 1 CACHE 20;

SQL Exception: Syntax error: Encountered "PORTAL" at line 1, column 17.

If any body know how to deal with this help me...

Thanks all.
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 32507
    
214

Satish,
I haven't used Cloudscape, but two questions that might lead you in the right direction:
1) Do you have a schema defined name "portal"?
2) Does Cloudscape support sequences?


[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
satish gutta
Greenhorn

Joined: Oct 13, 2006
Posts: 4
Yes I have a schema defined PORTAL and i checked cloudscape support for creating sequence and cudnt found any help..anyways even i am new to cloudscape ..

appreciate you help and time.

thanks
 
Have you checked out Aspose?
 
subject: Cloudscape Create Sequence
 
It's not a secret anymore!