ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel H. F. e Silva" <d...@yahoo.com>
Subject Re: java.sql.PreparedStatement or java.sql.Statement used?
Date Fri, 13 May 2005 13:27:02 GMT
Hi Martin,

  iBATIS has a feature for allowing this kind of situation.
  It's syntax is like this:
  
  select * from ACCOUNT_$category$

  You'll find all necessary details in the iBATIS Developer Guide.

Cheers,
 Daniel Silva.


--- Zeltner Martin <martin.zeltner@elca.ch> wrote:
> Hello,
> 
> I've tried to find out in which combination a "java.sql.PreparedStatement"
> and in which a "java.sql.Statement" is used. Is there a possability to
> config each statement? I'd like to realize that I can access a table
> dependent of a given parameter. The sql could looks like the following:
> 
> select * from ACCOUNT_#category#
> 
> Of course, in this case a PreparedStatement will not work.
> 
> Does anyone can tell me how I can switch between prepared and not prepared
> statements? Is this issue somewhere documented?
> 
> Thanks,
> Martin
> 

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Mime
View raw message