File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Soft Skills: The software developer's life manual this week in the Jobs Discussion forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Entering data into a DB - very newbie :/

 
Jase Si
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 8791
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are quite a few steps. Google for "jdbc tutorial" and you'll find some good step by step instructions.
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 http://www.sqlcourse.com

Good luck.

I'm moving this to the JDBC forum...
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic