返回最近调用 sqlite3_* API 的英文错误条件描述的字符串
#include <SQLite.au3>
_SQLite_ErrMsg ( [ $hDB ] )
$hDB | [可选参数] 打开的数据库,默认为最后打开的数据库 |
成功: | 返回错误信息 |
失败: | @error = 1 - 错误调用 SQLite API 'sqlite3_errmsg16' |
2 - 调用被安全模式阻止 |
#include <SQLite.au3>
#include <SQLite.dll.au3>
_SQLite_Startup()
ConsoleWrite("_SQLite_LibVersion=" & _SQLite_LibVersion() & @CRLF)
_SQLite_Open()
If $SQLITE_OK <> _SQLite_Exec(-1, "CREATE TABLE test (a', 'b');") Then _ ; 少了个引号
MsgBox(4096, "SQLite Error", "Error Code: " & _SQLite_ErrCode() & @CRLF & "Error Message: " & _SQLite_ErrMsg())
_SQLite_Close()
_SQLite_Shutdown()