Advanced Java: 04
Q.1 Write a java Program to connect Database (MySQL) using JDBC.
- Before writing and executing this program the following things should have done in MySQL DBMS.
- Open MySQL Client Console. enter the password root.
- mysql > create database hdfcdb;
- mysql > use hdfcdb;
- mysql > show tables.
- mysql > create table account (accuntno int (11), name varchar (20), balance double (10,2)).
- mysql > select * from account.
No comments:
Post a Comment