检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn

不再显示此消息

  • EU-English
    Europe
    • English
    • Deutsch
    • Español
    • Français
    • Nederlands
    International
    • English
    • Bahasa Indonesia
    • Español
    • Português
    • Türkçe
    • عربي
    • ไทย
    • 简体中文
    • 日本語
    中国站
    • 简体中文
  • Huawei Cloud
    • Products
    • Solutions
    • Pricing
    • KooGallery
    • Partners
    • Developers
    • Support
    • About Us
    Hot
    • Elastic Cloud Server (ECS)
    • Cloud Backup and Recovery (CBR)
    • Host Security Service (HSS)
    • Cloud Container Engine (CCE)
      Show more results for “”
      • Contact Us
      • Documentation
      • Console
        • My Account
        • Billing & Costs
        • Service Tickets
        • Unread Messages
        • Console
        • Partner Center
        • Sign InSign Up
      • Sign In
      • Sign Up
        • My Account
        • Billing & Costs
        • Service Tickets
        • Unread Messages
        • Console
        • Partner Center
        • Log Out
      Cancel
      Hot
      • Elastic Cloud Server (ECS)
      • Cloud Backup and Recovery (CBR)
      • Host Security Service (HSS)
      • Cloud Container Engine (CCE)
        Help Center/GaussDB/Developer Guide(Distributed_V2.0-2.x)/Application Development Guide/Development Based on JDBC
        Updated on 2025-08-19 GMT+08:00
        View PDF

        Development Based on JDBC

        Java Database Connectivity (JDBC) is Java API for executing SQL statements, providing unified accessing API for different relational databases, based on which applications process data. GaussDB supports JDBC 4.0 and requires JDK 1.8 for code compiling. It does not support JDBC-ODBC bridge.

        • JDBC Package, Driver Class, and Environment Class
        • Development Process
        • Loading a Driver
        • Connecting to a Database
        • Connecting to the Database (Using SSL)
        • Connecting to a Database (Using UDS)
        • Running SQL Statements
        • Processing Data in a Result Set
        • Closing a Database Connection
        • Log Management
        • Example: Common Operations
        • Example: Retrying SQL Queries for Applications
        • Example: Importing and Exporting Data Through Local Files
        • Example: Migrating Data from MySQL
        • Example: Logic Replication Code
        • Example: Parameters for Connecting to the Database in Different Scenarios
        • JDBC API Reference
        • Mapping for JDBC Data Types
        • Troubleshooting
        Parent topic:Application Development Guide

        Previous topic: Development Specifications

        Next topic: JDBC Package, Driver Class, and Environment Class

        Feedback

        Was this page helpful?

        HelpfulNot helpful
        Provide feedback

        Thank you very much for your feedback. We will continue working to improve the documentation.

        The system is busy. Please try again later.

        Which of the following issues have you encountered?

        Content is inconsistent with the product UI
        Unclear descriptions
        Lack of examples or code
        Incorrect steps
        Can't find what I need
        Lack of best practices

        Feedback (optional)

        0/500

        Select at least one type of issue, and enter your comments or suggestions.

        Enter a maximum of 500 characters.

        SubmitCancel
        Contact SalesAfter-SalesSelf-Service
        • Cookie Settings
        • Site Terms
        • Privacy Statement

        Explore Huawei Cloud

        Why UsCustomer StoriesTrust CenterLegalPress Releases

        Featured Services

        Elastic Cloud Server (ECS)Elastic IP (EIP)RDS for MySQLElastic Volume Service (EVS)MapReduce Service (MRS)

        Service and Support

        DocumentationSelf-ServiceContact UsPublic NoticesSupport Plans

        Account and Payment

        Charge/PaymentInvoicesBilling CenterMy AccountPayment Method

        Quick Links

        Huawei CorporateHuawei EnterpriseHuawei Consumer BusinessHuawei Developers

        © Sparkoo Technologies Ireland Co. Limited 2026

        Company Name: Sparkoo Technologies Ireland Co. Limited, a private company limited by shares.

        Company address: 2nd Floor, Mespil Court, Mespil Road, Ballsbridge, Dublin 4, D04 E516, Ireland

        Email address: eucloud@huaweicloud.com

        Company registration number: 709764

        Company VAT number: IE3921024FH

        • Cookie Settings
        • Cookie Policy
        • Site Terms
        • Privacy Statement