![]() |
Dealing with typelessness in SQLite - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Dealing with typelessness in SQLite (/showthread.php?tid=11364) |
Dealing with typelessness in SQLite - El Forum - 09-05-2008 [eluser]Xeoncross[/eluser] I have been reading about SQLite 2 Data Types and SQLite 3 Data Types I discovered that in SQLite 2 there are only 2 types: Quote:INTEGER (Primary key) In SQLite 3 there are a few more: Quote:NULL. The value is a NULL value. But even with these new types in SQLite 3 - you can store anything in any column (except id). So my question is - why even define the column type in "CREATE TABLE table" queries when it really doesn't seem to matter? Basically is there anything wrong with this code? Code: CREATE TABLE posts( Dealing with typelessness in SQLite - El Forum - 09-10-2008 [eluser]Xeoncross[/eluser] bump |