Deze pagina is nog niet beschikbaar in uw eigen taal. We werken er hard aan om meer taalversies toe te voegen. Bedankt voor uw steun.

On this page

Show all

Loading a Driver

Updated on 2024-09-30 GMT+08:00

Load the database driver before creating a database connection.

You can load the driver in the following ways:

  • Implicitly loading the driver before creating a connection in the code: Class.forName ("org.postgresql.Driver")
  • Transferring a parameter during the JVM startup: java -Djdbc.drivers=org.postgresql.Driver jdbctest
    NOTE:
    • jdbctest is the name of a test application.
    • If gsjdbc200.jar is used, change the driver class name to "com.huawei.gauss200.jdbc.Driver".
Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback