This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java and Mysql connection commands

 
James Eman
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok so i have been working on this program for a while and i finally got to the mysql portion but i had a few questions like the auto-generated key and how to insert data into a table.
 
Campbell Ritchie
Sheriff
Posts: 48454
56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That has nothing obvious to do with connections. You should learn about such SQL by running a database from the command line before trying any Java connections. You can google for SQL tutorials; there are many. You can find the MySQL handbook, which has a section with instructions about how to connect from a Java program. The Java Tutorials section is quite good, but might not answer all your questions.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic