My question: has someone a super-easy way to convert a SQL-file in SQLite?
Okay, now it's a little clearer: You want to take an existing MySQL file and translate it into its SQL Lite equivalent.
There are two parts to this process:
- Translate the DDL from one SQL database to another (DDL == "Data Definition Language")
- Migrate data from one schema to another.
Every SQL vendor starts with ANSI SQL and adds in their own proprietary syntax. So you'll have to create a SQL Lite schema (tables, columns, indexes, etc) from the MySQL definition.
The data migration process is called ETL ("Extract-Transform-Load"). You might have to massage some of that data from MySQL to get it into SQL Lite.
The best scenario would be to export your MySQL data into a .csv file, create the table in SQL Lite, then import the .csv file.
精彩评论