[JavaSE实验] JDBC and MySQL
[JavaSE实验] JDBC and MySQL 1 JDBC JDBC is an API for the Java programming language that defines how a client may access a database. It provides methods for querying and updating data in a database. JDBC is oriented point of view, the API is as a set of classes in the java.sql package. To use JDBC with a particular database, we need a JDBC driver for that database. 2 About MySQL database MySQL is a leading open source click on the Libraries node and select Add Library option. From the list of options, select MySQL JDBC Driver. 4 Installation and Testing If you don't already have MySQL installed, we must install it0 码力 | 23 页 | 2.52 MB | 1 年前301 Sharding JDBC概览
1 Sharding-JDBC 概览 1.1 认识ShardingSphere ShardingSphere是一套开源的分布式数据库中间件解决方案组成的生态圈,它由Sharding- JDBC、Sharding-Proxy和Sharding-Sidecar(计划中)这3款相互独立的产品组成。 他们均提 供标准化的数据分片、分布式事务和数据库治理功能,可适用于如Java同构、异构语言、容 认识Sharding-JDBC 定位为轻量级Java框架,在Java的JDBC层提供的额外服务。 它使用客户端直连数据库,以jar包 形式提供服务,无需额外部署和依赖,可理解为增强版的JDBC驱动,完全兼容JDBC和各种 ORM框架。 适用于任何基于Java的ORM框架,如:JPA, Hibernate, Mybatis, Spring JDBC Template或 直接使用JDBC。 基于任何第三方的数据库连接池,如:DBCP 基于任何第三方的数据库连接池,如:DBCP, C3P0, BoneCP, Druid, HikariCP等。 支持任意实现JDBC规范的数据库。目前支持MySQL,Oracle,SQLServer和 PostgreSQL。 1.3 认识Sharding-Proxy 定位为透明化的数据库代理端,提供封装了数据库二进制协议的服务端版本,用于完成对异构 语言的支持。 目前先提供MySQL版本,它0 码力 | 6 页 | 781.70 KB | 1 年前3CLICKHOUSE И DBEAVER, ИЛИ KOMY HyЖEH JDBC?
CLICKHOUSE И DBEAVER, ИЛИ КОМУ НУЖЕН JDBC? dbeaver.com 2 page DBEAVER Универсальный интерфейс для работы с базами данных 3 page О JDBC-ДРАЙВЕРЕ В ДВУХ СЛОВАХ ✓ JDBC- драйвер для Clickhouse есть и даже один ✗ Никто не идеален, и JDBC-драйвер тоже 4 page СЛОЖНОСТИ 1. Соответствие спецификации JDBC 2. Новая версия драйвера не всегда работает 3. Существование разных JDBC-драйверов 4. Нехватка аналитических аналитических функций 5 page СООТВЕТСТВИЕ JDBC API • Нестандартно возвращаются значения массивов • Метаданные о числовых типах не содержат scale и precision • Нестандартные типы данных SQL ВОПРОСЫ0 码力 | 9 页 | 2.16 MB | 1 年前32 Sharding-JDBC入门使用
2 Sharding-JDBC入门使用 2.1不使用Spring 引入Maven依赖 基于Java编码的规则配置 Sharding-JDBC的分库分表通过规则配置描述,以下例子是根据user_id取模分库, 且根据 order_id取模分表的两库两表的配置。org.apache.shardingsphere shardingspheresharding-jdbc-core ${sharding-sphere.version} dataSourceMap = new HashMap<>(); dataSource1 = new BasicDataSource(); dataSource1.setDriverClassName("com.mysql.jdbc.Driver"); dataSource1.setUrl("jdbc:mysql://localhost:3306/ds0"); dataSource1.setUsername("root"); dataSource1 0 码力 | 12 页 | 325.38 KB | 1 年前3使用JDBC连接数据库
使用JDBC连接数据库 北京理工大学计算机学院 金旭亮 Java数据库应用程序全局视图 Java应用程序 JDBC数据库驱动 (*.jar) JDBC规定了一整套访问数据库的标准API,所有数据库都 需要实现它,因此,使用JDBC访问数据库的Java应用程 序,是很容易切换底层数据库的。 JDBC核心类型一览表 核心类型(java.sql) 说明 DriverManager 负责装载/卸载驱动程序 库,相同的代码,就可以顺利工作…… JDBC访问数据库的基本步骤 加载JDBC驱动程序 创建数据库连接 执行SQL语句 接收并处理SQL的返回结果 关闭创建的各个对象 对于有可视化界面的应用 程序,或者是Server端 应用程序,应该在独立的 线程中完成这些步骤。 出于精简学习负担的目的,我们将以SQLite为例介绍 JDBC的基本使用,在此基础之上,后面选择微软的 SQL Server来介绍JDBC的高级特性…… Server来介绍JDBC的高级特性…… JDBC连接SQLite数据库 下载SQLite的JDBC驱动-1 SQLite官网上没有直接提供java的驱动程序组件包,可以通 过搜索引擎搜索“sqlite jdbc”找到相应的包。 SQLite JDBC驱动源码 托管于GitHub 也可以直接访问Maven 组件库下载jar包 下载SQLite的JDBC驱动-2 https://github.com/xerial/sqlite-jdbc/releases0 码力 | 20 页 | 1.02 MB | 1 年前3Spring Framwork Data Access v5.3.36 SNAPSHOT
Access with JDBC. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69 3.1. Choosing an Approach for JDBC Database Access . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70 3.3. Using the JDBC Core Classes to Control Basic JDBC Processing and Error Handling . . . . . . . . . 70 3.3.1. Using JdbcTemplate . DataSourceTransactionManager / JdbcTransactionManager . . . . . . . . . . . . . . . . . . . . . . . . 92 3.5. JDBC Batch Operations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .0 码力 | 197 页 | 2.76 MB | 1 年前3Apache ActiveMQ Artemis 2.30.0 User Manual
JMS Jakarta Examples Routing Messages With Wild Cards Wildcard Syntax Filter Expressions Persistence Configuring Transports Configuration Reload Detecting Dead Connections Detecting Slow Consumers xml use:2. If you're using JDBC persistence then due to the changes in ARTEMIS- 3679 you'll need to update your database. The column command-line option to transfer messages. Performance improvements for the wildcard address manager. JDBC datasource property values can now be masked. Lots of usability improvements to the Hawtio 2 based 0 码力 | 500 页 | 6.37 MB | 1 年前3Apache ActiveMQ Artemis 2.28.0 User Manual
JMS Jakarta Examples Routing Messages With Wild Cards Wildcard Syntax Filter Expressions Persistence Configuring Transports Configuration Reload Detecting Dead Connections Detecting Slow Consumers Versions 132. If you're using JDBC persistence then due to the changes in ARTEMIS- 3679 you'll need to update your database. The column command-line option to transfer messages. Performance improvements for the wildcard address manager. JDBC datasource property values can now be masked. Lots of usability improvements to the Hawtio 2 based 0 码力 | 494 页 | 6.33 MB | 1 年前3Apache ActiveMQ Artemis 2.29.0 User Manual
JMS Jakarta Examples Routing Messages With Wild Cards Wildcard Syntax Filter Expressions Persistence Configuring Transports Configuration Reload Detecting Dead Connections Detecting Slow Consumers xml use:2. If you're using JDBC persistence then due to the changes in ARTEMIS- 3679 you'll need to update your database. The column command-line option to transfer messages. Performance improvements for the wildcard address manager. JDBC datasource property values can now be masked. curl --user admin:admin --header "Content-Type: application/json" 0 码力 | 499 页 | 6.37 MB | 1 年前3Apache ActiveMQ Artemis 2.26.0 User Manual
JMS Jakarta Examples Routing Messages With Wild Cards Wildcard Syntax Filter Expressions Persistence Configuring Transports Configuration Reload Detecting Dead Connections Detecting Slow Consumers xml use:2. If you're using JDBC persistence then due to the changes in ARTEMIS- 3679 you'll need to update your database. The column command-line option to transfer messages. Performance improvements for the wildcard address manager. JDBC datasource property values can now be masked. Lots of usability improvements to the Hawtio 2 based 0 码力 | 487 页 | 6.28 MB | 1 年前3
共 867 条
- 1
- 2
- 3
- 4
- 5
- 6
- 87