'; // print_r(debug_backtrace()); // debug_print_backtrace(); // echo ''; // delete from table 结果为0,原因未知。 // 使用 delete from table where 1 能返回正确结果 return sqlite_changes($connResource); } public function query($sql, $connResource) { $result = sqlite_query($connResource, $sql, SQLITE_ASSOC); return sqlite_fetch_all($result, SQLITE_ASSOC); } public function lastInsertId($connResource) { return sqlite_last_insert_rowid($connResource); } public function escape($sql, $connResource) { return sqlite_escape_string($sql); } }