aspose file tools*
The moose likes JDBC and the fly likes Two instances of PreperedStatment Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Two instances of PreperedStatment" Watch "Two instances of PreperedStatment" New topic
Author

Two instances of PreperedStatment

RaviNada Kiran
Ranch Hand

Joined: Jan 30, 2009
Posts: 528

Hi ,

Can i create two PreparedStatements in a class? like this



PreparedStatment pst1 = con.prepareStatement(sqlquery1);

PreparedStatment pst2 = con.prepareStatement(sqlquery2);








If you want something you never had do something which you had never done
Jan Cumps
Bartender

Joined: Dec 20, 2006
Posts: 2516
    
  10

Yes


OCUP UML fundamental and ITIL foundation
youtube channel
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Two instances of PreperedStatment