It's not a secret anymore!
The moose likes JDBC and Relational Databases and the fly likes Entering data into a DB - very newbie :/ Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "Entering data into a DB - very newbie :/" Watch "Entering data into a DB - very newbie :/" New topic

Entering data into a DB - very newbie :/

Jase Si

Joined: Jun 20, 2004
Posts: 1
Hey everyone,

I'm a big newbie to Java, and need some help please

I'm making a simple program that can enter data from fields into relating fields in a database.

I was just wondering if anyone could give me some example code to get me started.

I just have a simple Java applet at the moment with the fields etc on it, but I don't know how to get the data that is entered with the applet, into a database's table.

I know how to set the UserDSN etc to identify to database, I just don't know the code to get the data from the fields into the database.

Could someone please help me out ?

Thanks a bunch guys
Stan James
(instanceof Sidekick)
Ranch Hand

Joined: Jan 29, 2003
Posts: 8791
There are quite a few steps. Google for "jdbc tutorial" and you'll find some good step by step instructions.

A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
Dirk Schreckmann

Joined: Dec 10, 2001
Posts: 7023
Welcome to JavaRanch, Jase Si!

For a simle introduction to JDBC (the name of the subject you're likely trying to learn), take a look at the JDBC assignments of the JavaRanch Cattle Drive.

Also, for starting to learn figuring out statements fot out database operations, I recommend taking a look at

Good luck.

I'm moving this to the JDBC forum...

[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
I agree. Here's the link:
subject: Entering data into a DB - very newbie :/
jQuery in Action, 3rd edition