答案 0 :(得分:0)
有什么问题,你没有wish to use ODBC drivers?您可以使用ODBC驱动程序和ADO轻松地在Excel或Word中阅读SQLite。
一些注意事项:
Dim cn As New ADODB.Connection
Dim rs As New ADODB.Recordset
scn = "DRIVER=SQLite3 ODBC Driver;Database=C:\docs\ex1;" _
& "LongNames=0;Timeout=1000;NoTXN=0;SyncPragma=NORMAL;StepAPI=0;"
cn.ConnectionString = scn
cn.Open
cn.Execute "CREATE TABLE tbl2 (ID int, Stuff Text(50))"
cn.Execute "INSERT INTO tbl2 (ID, Stuff) VALUES (2, 'def')"
s = "SELECT * FROM tbl2"
rs.Open s, cn
Debug.Print rs.GetString