0
我想創建一個本地數據庫。我做了一些插入,但是當我運行代碼時,我得到「result = null」錯誤:本地數據庫空結果
var selectStmt:SQLStatement = new SQLStatement();
selectStmt.addEventListener(SQLErrorEvent.ERROR, dbErrorHandler);
selectStmt.sqlConnection = conn;
selectStmt.text = "SELECT * FROM table1";
selectStmt.execute();
var result:SQLResult = selectStmt.getResult();
var numResults:int = result.data.length;
我該如何解決這個問題?