The current conversion only supports MySQL data tables with no foreign keys
Prepare: Download and install Sqlite Expert software
One gets the. sql file in MySQL, gets the procedure omitted can directly export the SQL file
Two new databases in SQLite Expert
Three select SQL Tab in the database, prepare the SQL file before importing
Four key steps
Will create the last statement about the encoded SQL statement primary key to delete
and the creation of the primary key is to modify the creation method will automatically grow deleted, so to speak a little abstract, the following example
This is the way MySQL is built
CREATE TABLE' admin ' (' admin_id ' )int( One)Not NULL auto_increment, ' Admin_username 'varchar( -)DEFAULT NULL, ' Admin_password 'varchar( -)DEFAULT NULL, ' Admin_name 'varchar( -)DEFAULT NULL, ' Admin_sex 'varchar(Ten)DEFAULT NULL, ' Admin_tel 'varchar( -)DEFAULT NULL, PRIMARY KEY (' admin_id ')) Engine=innodb auto_increment=2 DEFAULT Charset=utf8;
CREATE TABLE' admin ' (' admin_id ' )int( One)PRIMARY KEY not NULL, ' Admin_username 'varchar( -)DEFAULT NULL, ' Admin_password 'varchar( -)DEFAULT NULL, ' Admin_name 'varchar( -)DEFAULT NULL, ' Admin_sex 'varchar(Ten)DEFAULT NULL, ' Admin_tel 'varchar( -)DEFAULT NULL);
This is the SQL statement that conforms to the SQLite build table.
Mysql table converted to SQLite table