摘要:
public class JDBCDemo04 { @Test public void queryAll() throws SQLException { Connection con = JDBCUtil.getConnect(); String sql = "select * from users 阅读全文
摘要:
public class JDBCDemo03 { //添加一条数据 @Test public void addOne() throws SQLException { //1.获取连接 Connection con = JDBCUtil.getConnect(); //2.定义sql语句,参数?代替 阅读全文
摘要:
public class JDBCDemo2Login { public static void main(String[] args) throws SQLException { //1.获取页面数据 Scanner sc = new Scanner(System.in); System.out. 阅读全文