80,000 and displays names of employees with salary < 30,000 by querying the Employee table. 3) Displays the names of all employees by querying the Employee table. 4) Updates the salary to 80,000 for employees with salary < 50,000 and displays all records of the Employee table."> 80,000 and displays names of employees with salary < 30,000 by querying the Employee table. 3) Displays the names of all employees by querying the Employee table. 4) Updates the salary to 80,000 for employees with salary < 50,000 and displays all records of the Employee table.">
JDBC Solutions
JDBC Solutions
import java.io.IOException;
import java.sql.*;
while(rs.next()){
System.out.println("\n"+ rs.getString(2));
}
}
}
}
}
}
while(rs.next()){
System.out.println("\n"+
rs.getString(1)+"\t"+rs.getString(2)+"\t"+rs.getString(3));
}
}
}
while(rs.next()){
System.out.println("\n"+
rs.getString(1)+"\t"+rs.getString(2)+"\t"+rs.getString(3));
}
}
}