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 <[EMAIL PROTECTED]> 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