This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes JDBC and the fly likes Connecting netbeans with sql database Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Connecting netbeans with sql database" Watch "Connecting netbeans with sql database" New topic

Connecting netbeans with sql database

Vianna Dublin

Joined: Mar 07, 2010
Posts: 6
I've connected my database to netbeans and it automatically generated some code for me. This is one of the files of code it created.

I want to use the database information to make array objects but I dont know where to go from there so that i can assign variables or even get the results of some of the functions in the automated code. Can someone please explain how I go about doing this please?
Mansukhdeep Thind
Ranch Hand

Joined: Jul 27, 2010
Posts: 1157

This is what I could understand from your question:

You have a table in the database which stores all the information related to students. You want to retrieve that information and then do what exactly? Could you explain the exact objective you are trying to accomplish?

~ Mansukh
Campbell Ritchie

Joined: Oct 13, 2005
Posts: 38449
Stop using automated code generation. Start with a JDBC tutorial; there is a nice one here.

And I shall move this discussion to our databases forum.
wood burning stoves
subject: Connecting netbeans with sql database