File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and Relational Databases and the fly likes need a sample code JDBC ..preparedstatement Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Reply locked New topic

need a sample code JDBC ..preparedstatement

mayank yadav

Joined: Sep 25, 2005
Posts: 11
i have just started with jdbc
and tried some basic programs
i have tried used statement and preparedstatement
to connect to MS ACCESS ..
connection is is established in both the cases
i can retrieve the values form the database but
problem is entring values
can you please give a sample code of a program
of inserting and viewing values from a database in
Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 32312

Welcome to JavaRanch!

JavaRanch isn't the type of place where people write code for you. Once you have something, we are more than happy to help of corse. And we can always point you at resources. Anyway, based on your other thread, it looks like you've got something. So I'll close this and you can continue discussion there.

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: need a sample code JDBC ..preparedstatement
jQuery in Action, 3rd edition