标签:size manager 步骤 word class pre 语句 statement nbsp
1.导包
2.加载驱动类 Class.forName();
3.建立与数据库的连接:con = DriverManager.getConnection(url,username,password)
4.传送sql语句:PreparedStatement psmt = con.preparedStatement(sql);
5.接受数据库传来的值:
增删改:int count = psmt.executeUpdate();
查:ResultSet rs = pamt.exectQuery();
标签:size manager 步骤 word class pre 语句 statement nbsp
原文地址:https://www.cnblogs.com/yangshuwenzuibang/p/13799177.html