database.exec(sql)


  • sql <string> 要执行的 SQL 字符串。

此方法允许执行一个或多个 SQL 语句而不返回任何结果。当执行从文件中读取的 SQL 语句时,此方法非常有用。此方法是 sqlite3_exec() 的一个封装。

【This method allows one or more SQL statements to be executed without returning any results. This method is useful when executing SQL statements read from a file. This method is a wrapper around sqlite3_exec().】