JDBC使用步骤总结 1.注册驱动 Class.forName("com.mysql.cj.jdbc.Driver"); 2.获取链接 Connectionconnection= DriverManager.getConnection(url,user,password); 3.创建statement //静态: Statementstatement=connection.createStatement(); //动态: PreparedStatementpreparedstatement=connection.preparedStatement(); //编写sql语句,其中动态值用?代...

  5xKphfkDSuR3   2023年11月01日   120   0   0 Java
关注 更多

空空如也 ~ ~

粉丝 更多

空空如也 ~ ~