This article is a mirror article of machine translation, please click here to jump to the original article.

View: 33898|Reply: 0

[Source] Java uses JDBC to connect sqlite URL issue

[Copy link]
Posted on 5/8/2021 11:42:04 AM | | | |
The URL format for connecting to JDBC is jdbc:sqlite:/path. Special statement: The drive letter path of the path must be lowercase, otherwise an error will be reported:

For example: jdbc:sqlite://E:/sqlite/test.db。 The error is as follows:



The path here is the path specified to the SQLite database file, for example: jdbc:sqlite://e:/sqlite/test.db. And the path is in unix path format (with /for backslash).

The hyperlink login is visible.

The JDBC URLs to connect to an SQLite database have the format jdbc:sqlite:/path, where path has to be specified as the path name to the SQLite database, for example
jdbc:sqlite://dirA/dirB/dbfile
jdbc:sqlite:/DRIVE:/dirA/dirB/dbfile
jdbc:sqlite:///COMPUTERNAME/shareA/dirB/dbfile






Previous:Introduction to the Logstash API interface
Next:ASP.NET pit of the default parameters of the Swagger UI in Core(8).
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com