SQLite
v
SQLite ─ Injection .................................................................................................................................. 123
Preventing SQL Injection ............................................................................................................................. 123
SQLite ─ EXPLAIN .................................................................................................................................. 125
SQLite ─ VACUUM ................................................................................................................................. 127
Manual VACUUM ........................................................................................................................................ 127
Auto-VACCUM ............................................................................................................................................. 127
SQLite ─ Date & Time ............................................................................................................................ 129
Time Strings ................................................................................................................................................. 129
Modifiers ..................................................................................................................................................... 130
Formatters ................................................................................................................................................... 130
SQLite ─ Useful Functions ...................................................................................................................... 133
SQLite COUNT Function ............................................................................................................................... 134
SQLite MAX Function ................................................................................................................................... 135
SQLite MIN Function .................................................................................................................................... 135
SQLite AVG Function ................................................................................................................................... 135
SQLite SUM Function ................................................................................................................................... 136
SQLite RANDOM Function ........................................................................................................................... 136
SQLite ABS Function .................................................................................................................................... 136
SQLite UPPER Function ................................................................................................................................ 136
SQLite LOWER Function ............................................................................................................................... 137
SQLite LENGTH Function ............................................................................................................................. 137
SQLite sqlite_version Function .................................................................................................................... 138
SQLITE INTERFACES ................................................................................................................. 139
SQLite ─ C/C++ ...................................................................................................................................... 140
C/C++ Interface APIs .................................................................................................................................... 140
Connect to Database ................................................................................................................................... 141
Create a Table .............................................................................................................................................. 142
INSERT Operation ........................................................................................................................................ 143
SELECT Operation ........................................................................................................................................ 145
UPDATE Operation ...................................................................................................................................... 147
DELETE Operation ........................................................................................................................................ 149
SQLite ─ Java ......................................................................................................................................... 152
Installation ................................................................................................................................................... 152
Connect to Database ................................................................................................................................... 152
Create a Table .............................................................................................................................................. 153
INSERT Operation ........................................................................................................................................ 154
SELECT Operation ........................................................................................................................................ 155
UPDATE Operation ...................................................................................................................................... 157
DELETE Operation ........................................................................................................................................ 159
SQLite ─ PHP ......................................................................................................................................... 162
Installation ................................................................................................................................................... 162
PHP Interface APIs ....................................................................................................................................... 162
Connect to Database ................................................................................................................................... 163
Create a Table .............................................................................................................................................. 164