tags:

views:

221

answers:

1

Hi I'm working on my first sqlite project and I was just wondering if sqlite supports all the same field type that MYsql does e.g - DATETIME, TINYINT, VARCHAR ect.

If sqlite supports limited field type it would be a big help if someone could provide me with them.

thanks!

A: 

sqlite has a very limited number of datatypes. According to the Documentation it has the following 5 datatypes:

  • NULL. The value is a NULL value.
  • INTEGER. The value is a signed integer, stored in 1, 2, 3, 4, 6, or 8 bytes depending on the magnitude of the value.
  • REAL. The value is a floating point value, stored as an 8-byte IEEE floating point number.
  • TEXT. The value is a text string, stored using the database encoding (UTF-8, UTF-16BE or UTF-16LE).
  • BLOB. The value is a blob of data, stored exactly as it was input.

So to answer your question, no, sqlite and mysql do not have the same datatypes.

Marius
Thanks for the insight!
Adam