A database is a group of statistics that is organized in order that it could be effortlessly accessed, controlled and up to date. Computer databases typically include aggregations of statistics statistics or documents, containing facts about income transactions or interactions with particular clients.
To get help you can see the video.
Source code for add new student in library page.
public class javaConnect {
Connection con = null;
public static Connection Connector(){
try{
Class.forName("com.mysql.jdbc.Driver");
Connection con = DriverManager.getConnection("jdbc:mysql://localhost/db_for_demo","root","");
return con;
}catch(Exception e){
JOptionPane.showMessageDialog(null, e);
return null;
}
}
}
Be First to Comment