Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/sqlite/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用EclipseIDE将Erlang连接到sqlite3_Sqlite_Erlang - Fatal编程技术网

使用EclipseIDE将Erlang连接到sqlite3

使用EclipseIDE将Erlang连接到sqlite3,sqlite,erlang,Sqlite,Erlang,我正在尝试使用EclipseIDE中的Erlang连接到SQLite3 我已经在c:\Windows\System32中安装了SQLite3,并且正在尝试使用Eclipse中的以下erlang代码连接到它 {ok, Conn} = odbc:start(),{ok, Conn} = odbc:connect("DSN=sqlite3", []). 我得到以下错误: The specified DSN contains an architecture mismatch between the D

我正在尝试使用EclipseIDE中的Erlang连接到SQLite3

我已经在
c:\Windows\System32
中安装了SQLite3,并且正在尝试使用Eclipse中的以下erlang代码连接到它

{ok, Conn} = odbc:start(),{ok, Conn} = odbc:connect("DSN=sqlite3", []).
我得到以下错误:

The specified DSN contains an architecture mismatch between the Driver and Application SQLSTATE IS: IM014 Connection to database failed.
有人能告诉我如何解决这个错误的一步一步的细节吗(PS:我在另一篇文章中建议使用32位odbcad32,但没有帮助),以及如何使用erlang连接到sqlite3。我应该安装任何驱动程序还是包含任何头文件?还有人能告诉我在创建odbc驱动程序时需要填写哪些参数吗。我对Erlang或sqlite不是很熟悉


非常感谢。

为什么不使用这样的东西呢。这样,您就不必处理整个ODBC的事情,并且您将拥有更多的可移植代码