Java 2 old Papers Solution 2017 || BIM STUDY NOTES
Year 2017 Group B 2.Write a program to display records from the table “employee” that contains (id, name, post and salary) inside the database “testdb”. import java.sql.*; public class Ques2_2017 { public static void main(String[] args) { String url = “jdbc:mysql://localhost:3306/testdb”; String uname = “root”; String pwd = “”; try { Class.forName(“com.mysql.jdbc.Driver”); Connection con = […]
Continue Reading