• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

Entering data into a DB - very newbie :/

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
(instanceof Sidekick)
Posts: 8791
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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...
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic