If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Adabas > Prepared Statement Error

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-23-03, 00:29
sudhir1978 sudhir1978 is offline
Registered User
 
Join Date: Jul 2003
Posts: 1
Prepared Statement Error

My prepared Statement is

SELECT dbo.EXTRACT.PRAD_ID,dbo.EXTRACT.PRCP_ID FROM
dbo.EXTRACT where dbo.EXTRACT.PRAD_ID IN ?

The assignment of the '?' is as follows:


String test = "(\"850327237026\" , \"234567897612\")";

getPCpreparedstatementIn().getPs1().setString(1,te st);

getPCpreparedstatementIn().getPs1().executeQuery() ;



The Execution fails with a syntax error:

Session.checkConnection(): Check connection status
Session.checkConnection(): Sybase SQL State: 42000
Session.checkConnection(): Connection is UP
****** Exceptionjava.sql.SQLException: [Sybase JDBC
Driver][Sybase]Incorrect syntax near '@p1'.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On