By Rupert
SQLite3 Cheatsheet
Tools
1. MesaSQLite for MacOSX.
SQL
1. Getting the current time
MySQL = Now();
SQLite3 = CURRENT_TIMESTAMP;
insert into jobstemp(full_address, datecreated, dateupdated)
VALUES("9 Bishop Street", CURRENT_TIMESTAMP, CURRENT_TIMESTAMP);
2. Getting the local current time
SELECT datetime(dateupdated, 'localtime')
3. Trim
SELECT trim(name) FROM table
| Print article | This entry was posted by Rupert on August 12, 2009 at 7:42 pm, and is filed under sqlite3. Follow any responses to this post through RSS 2.0. You can skip to the end and leave a response. Pinging is currently not allowed. |
about 3 days ago
Was an interesting article, thank you..
about 2 days ago
Wonderful journey and experience!