Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Databases / July 2006

Tip: Looking for answers? Try searching our database.

How to access a MySQL database from Java code?

Thread view: 
azsx - 04 Jul 2006 12:42 GMT
Please help me learn how can I create a MySQl database and then
modify/update it with Java. Please give me some helpfull code...
Ian Wilson - 04 Jul 2006 15:02 GMT
> Please help me learn how can I create a MySQl database and then
> modify/update it with Java. Please give me some helpfull code...

I found that Googling for JDBC throws up some helpful code.

Third item:

"This document illustrates the basics of the JDBC (Java Database
Connectivity) API (Application Program Interface). Here, you will learn
to use the basic JDBC API to create tables, insert values, query tables,
retrieve results, update tables, create prepared statements, perform
transactions and catch exceptions and errors.

This document draws from the official Sun tutorial on JDBC Basics. "
David Harper - 05 Jul 2006 09:12 GMT
> Please help me learn how can I create a MySQl database and then
> modify/update it with Java. Please give me some helpfull code...

There are plenty of books on JDBC programming.  The O'Reilly title
"Database programming with JDBC and Java" is a perfectly good one, with
plenty of example code snippets and full working programs, which can
also be downloaded from the O'Reilly web site.

As Ian Wilson has pointed out, the Sun tutorial on JDBC programming is
available online, and that also contains many examples.

For MySQL-specific information, you should refer to the online
documentation for Connector/J, the MySQL JDBC implementation:

http://dev.mysql.com/doc/refman/4.1/en/java-connector.html

David Harper
Cambridge, England


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.