This week's book giveaway is in the Artificial Intelligence forum.
We're giving away four copies of Pragmatic AI and have Noah Gift on-line!
See this thread for details.
Win a copy of Pragmatic AI this week in the Artificial Intelligence forum!
  • 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:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

Beginning With Databases  RSS feed

 
Ranch Hand
Posts: 121
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would like to write a simple program that stores information in a database. Most references on Java Databases refer to "connecting" to a database. I imagine this database already exists and was perhaps created by another program altogether. Where do I start if I want to use a database in my program? What's the simplest technique to store data for use by by program in a database?
Thanks for any suggestions,
Landon
 
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Look into the Sun JDBC Tutorial. This is the Java way to connect to databases. It's pretty sane, and ought to be good fun to pick up.
You can give JDBC a try using MS-Access as a database if you're on Windows (look for JDBC-ODBC) or any number of free databases or free-trial-version databases. Each database requires slightly different code to connect. Most will come with some Java samples that you can study and copy.
Ranch suggestions for an ---easy to set up--- starter database?
 
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You also might want to take a look at the JDBC assignments of the JavaRanch Cattle Drive for an easy introduction to the subject.
Moving this to the JDBC forum...
[ February 25, 2004: Message edited by: Dirk Schreckmann ]
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!