db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kathey Marsden <kmarsdende...@sbcglobal.net>
Subject Re: help requires regarding get cursor..!!
Date Thu, 02 Aug 2007 19:27:41 GMT
Ravinder Reddy Pandiri wrote:
>     hi,
>         I am getting the following error while executing the the line
>      s.executeUpdate("get cursor c1 as 'select * from t2'");
Hi Ravinder,

The get cursor syntax is ij syntax. In a java program, you should use 
the JDBC method Statement.setCursorName(String cursorName) to set the 
name and then Statment.executeQuery() to execute the query.

View raw message