MySQL versus SQLite
This page compares the different commands needed to do similar tasks using the SQLite and MySQL database engines.
MySQL | SQLite |
---|---|
Get schema from database | |
Use mysqldump -u user-name -p --no-data db-name > file-nameSee RE: mysqldump ONLY Schema (lists.mysql.com). |
Start the command line tool |
Insert values into a table | |
MySQL accepts the same syntax as SQLite.
It also has a syntax using INSERT INTO table SET col1=1,col2=2,col3=3This doesn't work with SQLite. |
SQLite only has one syntax: INSERT INTO table(col1,col2,col3) VALUES (1,2,3) |
Create an auto-incremented column | |
CREATE TABLE `inputs` ( `input_id` int(11) NOT NULL AUTO_INCREMENT ); |
CREATE TABLE inputs ( input_id INTEGER PRIMARY KEY ); |
Copyright © Ben Bullock 2009-2024. All
rights reserved.
For comments, questions, and corrections, please email
Ben Bullock
(benkasminbullock@gmail.com) or use the discussion group at Google Groups.
/
Privacy /
Disclaimer