I have a database which i have created using phpmyadmin. I need this database to be update programmatically using values i get from a java program. How would i go about doing this.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Simple database access in Java is achieved via JDBC. The exact commands you’d need to use depend on what sort of queries you want to execute, but any half-decent tutorial should cover both select and insert/update statements.
I’d recommend starting with Sun’s JDBC Basics tutorial, and going from there.
If you have any specific points you’re stuck on after following the tutorial, I’d recommend posting a follow-up question showing what you’ve tried to do, and why it’s not working. However asides from perhaps getting an environment set up, JDBC isn’t too tricky to use.
(Do remember to close your resources in a
finallyblock though!)