English 中文(简体)
我怎么能具体指出一个相关联的联谊会。
原标题:How can I specify a RELATIVE JDBC SQLite url (path?)
最佳回答

我走过了你采取的同样步骤,我的调查结果表明,新联线的维萨德的相对道路与NetBeans的工作名录相对,后者是NetBeans安装的名录。

For example, in your connection string you are "connecting" to a database that resides at <NetBeans-Install-Dir>/ithildin-13-11-11.db. Since this database does not exist, SQLite is creating it for you which is giving you the "illusion" that you are seeing. In my tests, the database that I was trying to connect to with a relative path was created in the NetBeans install directory.

换言之,一切工作都是按照设计的。

在您的法典中,你可以使用一条相对的道路,should>相对贵项目目录的顶端。 在NetBeans数据库中,你需要使用一条绝对的道路连接现有的数据库(在你的项目中),或者需要提供从NetBeans安装名录开始的相对途径。

My suggestion is that you use a relative path in your code and an absolute path in the New Connection Wizard.

问题回答

暂无回答




相关问题
MaxPooledStatements setting in JDBC oracle

I can t figure out how to set MaxPooledStatements in Oracle using the Oracle thin JDBC driver. Could someone point me in the right direction?

pass ResultSet from servlet to JSP

I am doing the following in my SampleServlet.java //Fill resultset from db .... try { ArrayList Rows = new ArrayList(); while (resultSet.next()){ ArrayList row = new ArrayList(); ...

How to correctly use ResultSet with h:dataTable

The problem is, that after displaying the ResultSet with <h:dataTable>, the connection is left open. If I close it, it closes the ResultSet too. I m thinking about copying the ResultSet data ...

Mysql session variable in JDBC string

am using this connection string to connect to mysql from java: jdbc:mysql://localhost:3306/db?noDatetimeStringSync=true&useUnicode=yes&characterEncoding=UTF-8 is it possible to set the ...

热门标签