Last updated: Mon, Apr 17, 2023 10:21 am
Return to Knowledgebase
Imports a SQL file into the database.
||a string representing the file path of the SQL file to be imported
||Description of Returned Data
The function reads the contents of the SQL file and executes each query one by one. The queries should be separated by a semicolon (;) at the end of each line. Comments starting with -- are ignored.
Note: Before importing a SQL file, make sure to back up your database in case anything goes wrong during the import process.