/ Published in: SQL
If you come from a MySQL background like me, these may come in handy. http://www.sqlite.org/sqlite.html
Expand |
Embed | Plain Text
#Create a database bash$ sqlite3 <database> #See a list of the tables in the database sqlite> .TABLES #Quit SQLite3 sqlite> .quit #Create a Table and insert a couple of values sqlite> CREATE TABLE tbl2 ( f1 varchar(30) PRIMARY KEY, f2 text, f3 real); sqlite> INSERT INTO tbl1 VALUES('hello!',10); #Select * from a table sqlite> SELECT * FROM tbl1;
You need to login to post a comment.
