Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Java Databases > Re: Why excepti...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 4 of 4 Topic 3736 of 3876
Post > Topic >>

Re: Why exception ex****ting query result on Derby ?

by =?ISO-8859-1?Q?Arne_Vajh=F8j?= <arne@[EMAIL PROTECTED] > May 12, 2008 at 06:50 PM

MikeRam wrote:
> MikeRam wrote:
>> q="SELECT * FROM "+dbTable+" WHERE "+FieldName+" BETWEEN ? AND ? ORDER 
>> BY ID";
>> q="CALL SYSCS_UTIL.SYSCS_EX****T_QUERY('"+q+"','"+OutFile+"', null, 
>> null, null)";
>> stm=cn.conn.prepareStatement(q);
>> stm.setString(1, sd.StringDataOraInizio);
>> stm.setString(2, sd.StringDataOraFine);
>> stm.executeUpdate();

> Even with this syntax i receive the same exception
> stm=cn.conn.prepareCall(q);
> stm.setString(1, sd.StringDataOraInizio);
> stm.setString(2, sd.StringDataOraFine);
> stm.execute();

You can not use parameters inside a '' argument like that.

Arne
 




 4 Posts in Topic:
Why exception exporting query result on Derby ?
MikeRam <ing.ramundo@[  2008-04-27 16:30:27 
Re: Why exception exporting query result on Derby ?
=?ISO-8859-1?Q?Arne_Vajh=  2008-04-27 11:02:28 
Re: Why exception exporting query result on Derby ?
MikeRam <ing.ramundo@[  2008-04-27 17:27:12 
Re: Why exception exporting query result on Derby ?
=?ISO-8859-1?Q?Arne_Vajh=  2008-05-12 18:50:00 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Dec 3 23:24:27 CST 2008.