GPT实战本地部署CPU推演模型-开发可视化部署工具
2023-08-21 10:00 作者:每天学习n个拼课技巧 | 我要投稿
public static void testDelete() throws SQLException {
// 1. 创建QueryRunner对象
QueryRunner queryRunner = new QueryRunner(JDBCTools.getDataSource());
String sql = "delete from user where id=?";
queryRunner.update(sql,2000);
}
public static void testUpdate() throws SQLException {
// 将id为5的用户昵称改为张飞
QueryRunner queryRunner = new QueryRunner(JDBCTools.getDataSource());
String sql = "update user set nickname=? where id=? ";
queryRunner.update(sql,"张飞",6);