File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Joined: Mar 04, 2007
Jul 11, 2007 01:08:00
Shall we excuete select query with help of preparedstatement interface.
For example : select * from emp;
Joined: Nov 18, 2006
Jul 11, 2007 02:57:00
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.
Joined: Apr 20, 2006
Jul 11, 2007 03:38:00
Hello yekkala krishna,
Please dont make duplicate posts
. Your post is already answered
Please continue it from there.
[ July 11, 2007: Message edited by: Raghavan Muthu ]
Everything has got its own deadline including one's EGO!
Java Beginners FAQ
Java Coding Guidelines
I agree. Here's the link:
subject: regarding preparedstatement
How to use the Date object
Simple SQL question
prepared statement -select- and?
JDBC problem:Too few parameters. Expected 1
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014