File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and the fly likes Cloudscape  Create Sequence Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
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: 31062
    
232

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?


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, 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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Cloudscape Create Sequence