Learned this from a friend. The types are null, integer, real, text, and blob. My friend describes them thusly:
- Null stores nothing, but like, actively nothing, as opposed to the absence of a thing.
- Integer is a signed integer, up to 8 bytes.
- Real is always an 8-byte float.
- Text is an arbitrary-length UTF-8 or UTF-16.
- Blob is an arbitrary-length anything-else. But I hope you remembered what you put there. Because it sure isn’t gonna tell you. Oh, and it doesn’t have strong typing, so if you ask for it back as an integer, it’ll quite happily give you it back as an integer, especially if that doesn’t make sense!
You must log in or register to comment.
I find the lack of dates the most annoying
I understand that the way you’re “supposed” to store dates is to convert them to timestamps, and store them as either integers or reals.
Personally, I would probably just store them as text, because I’m objectively a terrible programmer.
Is it me or isn’t ISO 8601 string more than enough?
“Null” is not a distinct data type. It’s a specific value that a data type can contain.