LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   PHP script - Sqlite import data from file - How to? (https://www.linuxquestions.org/questions/programming-9/php-script-sqlite-import-data-from-file-how-to-4175672200/)

pizzipie 03-29-2020 03:16 PM

PHP script - Sqlite import data from file - How to?
 
Mysql has LOAD DATA INFILE myDataImport.sql

Sqlite3 command line has .read myDataImport.sql

How is this accomplished in a PHP script? I find no LOAD FILE equivelent.

Thanks for the help.

R

TenTenths 03-30-2020 08:40 AM

Create the database connection, create the LOAD DATA as a query, execute the query.

A simple google search turns up plenty of examples.


All times are GMT -5. The time now is 11:39 AM.