上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 57 下一页
摘要: 原文:https://blog.csdn.net/zc1320030382/article/details/78366370?utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7Ed 阅读全文
posted @ 2021-07-05 16:00 清语堂 阅读(126) 评论(0) 推荐(0) 编辑
摘要: 原文:https://blog.csdn.net/orecle_littleboy/article/details/82458956 ORM简介 ORM(Object Relational Mapping,对象关系映射)模式是一种为了解决面向对象与关系数据库存在的互不匹配的技术。简单的说,ORM是通 阅读全文
posted @ 2021-07-05 14:36 清语堂 阅读(4570) 评论(0) 推荐(0) 编辑
摘要: 在JDBC中通常用Statement类的对象实现对数据库的更新(增、删、查、改)操作 //1、获取数据库连接 connection = getConnection(); //2、准备sql语句 String sql = null; // sql = "INSERT INTO custom(NAME, 阅读全文
posted @ 2021-07-05 11:17 清语堂 阅读(142) 评论(0) 推荐(0) 编辑
摘要: 说明:Statement stmt = con.createStatement( ResultSet. TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY); 通用格式为:Statement stmt=con.createStatement(int 阅读全文
posted @ 2021-07-05 08:11 清语堂 阅读(655) 评论(0) 推荐(0) 编辑
摘要: https://docs.microsoft.com/zh-cn/sql/connect/jdbc/updating-large-data-sample?view=sql-server-ver15 备注 Microsoft JDBC Driver for SQL Server 提供四个类库文件:sq 阅读全文
posted @ 2021-07-05 08:07 清语堂 阅读(189) 评论(0) 推荐(0) 编辑
摘要: 把异常抛给调用它的地方,调用 的地方就必须try catch,不然编译都不过。。这样代码就更健壮了。 阅读全文
posted @ 2021-07-04 10:19 清语堂 阅读(682) 评论(0) 推荐(0) 编辑
摘要: https://docs.microsoft.com/zh-cn/sql/connect/jdbc/reading-large-data-with-stored-procedures-sample?view=sql-server-ver15 package com.example.wfydemo.c 阅读全文
posted @ 2021-07-03 16:39 清语堂 阅读(530) 评论(0) 推荐(0) 编辑
摘要: 标准 SQL 都提供了下面这种方式一条 INSERT INTO 语句插入多条记录 INSERT INTO Customers(Id, Name, Age) VALUES (1, 'Name1', 21.5), (2, 'Name2', 32.3) VALUES 之后用括号列出每一条记录。但是在 Ja 阅读全文
posted @ 2021-07-03 16:01 清语堂 阅读(685) 评论(0) 推荐(0) 编辑
摘要: https://docs.microsoft.com/zh-cn/sql/connect/jdbc/caching-result-set-data-sample?view=sql-server-ver15 此 Microsoft JDBC Driver for SQL Server 示例应用程序说明 阅读全文
posted @ 2021-07-03 11:32 清语堂 阅读(355) 评论(0) 推荐(1) 编辑
摘要: package com.example.wfydemo.controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation. 阅读全文
posted @ 2021-07-03 11:30 清语堂 阅读(103) 评论(0) 推荐(0) 编辑
上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 57 下一页