AU3不支持分布式数据库吗? - 已解决
本帖最后由 rally 于 2022-1-12 16:56 编辑后缀为.dd的数据库,用SQLITE Express能打开,用Python sqlite也能读取。为什么Au3读取不了,是不支持吗?测试连接就失败,
Global $sql_name =@ScriptDir & "\UserDb.dd"
$ar = SQLite_Read_IPAndSokcet()
MsgBox(0,"",$ar)
Func SQLite_Read_IPAndSokcet()
Local $hQuery,$aRow
_SQLite_Open($sql_name)
If @error Then MsgBox(0,"","连接失败")
Local $sql = "SELECT Account FROM User;"
Local $set_string = ""
_SQLite_Query(-1, $sql, $hQuery)
If @error Then MsgBox(0,"","连接失败")
While _SQLite_FetchData ($hQuery, $aRow) = $SQLITE_OK
$Temp = $aRow
If $Temp == "" Then
_SQLite_Close()
Else
$set_string = "|" & $aRow & $set_string
EndIf
WEnd
_SQLite_Close()
Return $set_string
EndFunc
_SQLite_Open($sql_name)
前面加上:
_SQLite_Startup();SqLite初始化 floor6ggg 发表于 2022-1-12 15:40
_SQLite_Open($sql_name)
前面加上:
范了这么低级的错误 。汗。。。。。。感谢提醒
页:
[1]