Migrate database engine from MySQL to SQLite: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
Tags: Mobile edit Mobile web edit |
||
| Line 4: | Line 4: | ||
# Migrate database data from MySQL to SQLite using the [[SQLite management software]] | # Migrate database data from MySQL to SQLite using the [[SQLite management software]] | ||
# Modify the scripts of database | # Modify the scripts of database connection and SQL query syntax because some MySQL functions are not compatible in SQLite | ||
# Testing the scripts | # Testing the scripts | ||
Latest revision as of 07:42, 13 November 2019
Steps of migration database engine from MySQL to SQLite
Steps of migration database engine from MySQL to SQLite[edit]
- Migrate database data from MySQL to SQLite using the SQLite management software
- Modify the scripts of database connection and SQL query syntax because some MySQL functions are not compatible in SQLite
- Testing the scripts
Notes of modification of scripts[edit]
- Remove database name from SQL query: SQLite will consider the database name as table name
- In MySQL, string are able to quoted with single quote symbol ' or double quote symbol ". In SQLite the string quoted with double quote symbol will be considered as column name! It will cause the problem: "no such column: xxx"
- Replace the following functions
-- MySQL LOCATE(substr,str), LOCATE(substr,str,pos) -- SQLite INSTR(string, substring);
- Other functions are not supported such as: SET, Truncate[5], INGORE