JDBC
AlexAuthor7
这个作者很懒,什么都没留下…
展开
-
对数据类型的操作
对Blob数据类型的操作/** * @Auther: Alex * @Date: 2020/12/26 - 12 - 26 -23:28 * @Description: 测试使用ProparedStatement操作Blob类型的数据 * @Verxion: 1.0 */public class BlobTest1 { //向customers中插入Blob类型的字段 @Test public void test1() throws Exception {原创 2021-01-18 22:52:55 · 76 阅读 · 0 评论 -
JDBC 获取数据库连接的五种方式
public class ConnectionTest1 { //方式一 @Test public void test() throws SQLException { Driver driver = new com.mysql.cj.jdbc.Driver(); //在mysql中会显示时区异常 String url = "jdbc:mysql://localhost:3306/test?serverTimezone=UTC";原创 2021-01-18 22:40:08 · 231 阅读 · 0 评论 -
JDBC 对Blob数据类型的操作以及大批量插入数据
对Blob数据类型的操作/** * @Auther: Alex * @Date: 2020/12/26 - 12 - 26 -23:28 * @Description: 测试使用ProparedStatement操作Blob类型的数据 * @Verxion: 1.0 */public class BlobTest1 { //向customers中插入Blob类型的字段 @Test public void test1() throws Exception {原创 2021-01-15 00:25:08 · 178 阅读 · 0 评论