Author
regarding preparedstatement
yekkala krishna
Ranch Hand
Joined: Mar 04, 2007
Posts: 105
posted Jul 11, 2007 01:08:00
0
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
Joined: Nov 18, 2006
Posts: 679
posted Jul 11, 2007 02:57:00
0
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
Joined: Apr 20, 2006
Posts: 3327
posted Jul 11, 2007 03:38:00
0
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 ]
Everything has got its own deadline including one's EGO!
[CodeBarn ] [Java Concepts-easily ] [Corey's articles ] [SCJP-SUN ] [Servlet Examples ] [Java Beginners FAQ ] [Sun-Java Tutorials ] [Java Coding Guidelines ]
subject: regarding preparedstatement