• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Entering data into a DB - very newbie :/

 
Greenhorn
Posts: 1
  • 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
 
(instanceof Sidekick)
Posts: 8791
  • 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.
 
Sheriff
Posts: 7023
  • 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...
 
get schwifty. tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic