Bookmark Topic Watch Topic
  • New Topic

regarding preparedstatement

 
yekkala krishna
Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
  • Report post to moderator
hi guys,

Shall we excuete select query with help of preparedstatement interface.

For example : select * from emp;

with regards
Y.rama krishna
 
Kaydell Leavitt
Ranch Hand
Posts: 689
Eclipse IDE Firefox Browser Mac OS X
  • Mark post as helpful
  • send pies
  • Report post to moderator
I don't think that you need to use a PreparedStatement in this case. PreparedStatement objects are for when you repeatedly execute the same kind of query over-and-over again with different parameters.

In this case, I think that a regular Statement will serve you best.

Kaydell
 
Raghavan Muthu
Ranch Hand
Posts: 3381
Mac MySQL Database Tomcat Server
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hello yekkala krishna,

Please dont make duplicate posts. Your post is already answered here

Please continue it from there.
[ July 11, 2007: Message edited by: Raghavan Muthu ]
 
    Bookmark Topic Watch Topic
  • New Topic