All Products
Search
Document Center

Tablestore:JDBC

Last Updated:Mar 06, 2025

You can use Java Database Connectivity (JDBC) to access Tablestore. You can execute SQL statements to query data by directly using JDBC or by using Hibernate or MyBatis to use JDBC.

Connection methods

Connection method

Description

Use JDBC to access Tablestore by executing SQL statements

Tablestore provides the JDBC driver that you can use to execute SQL statements to access Tablestore. You can access Tablestore by directly using JDBC.

Use Hibernate to query data by executing SQL statements

Hibernate is an Object/Relational Mapping (ORM) solution for Java environments. You can access Tablestore by using Hibernate to use the JDBC driver for Tablestore.

Use MyBatis to query data by executing SQL statements

MyBatis is a persistence framework for Java that supports custom SQL statements, stored procedures, and advanced mappings. You can access Tablestore by using MyBatis to use the JDBC driver for Tablestore.