SQLite for Beginners: Dates

preview_player
Показать описание
SQLite doesn't have date and time datatypes, which begs the question, how do you deal with your date and time values?

Want to learn more? Check out this video.

Рекомендации по теме
Комментарии
Автор

Your tutorials on sqlite are the best! Very well-explained and pragmatic. Thank you!

CameronFlint
Автор

If you're wondering what the hell is going on when he inserted a string into a real column, and even retrieved it again... Sqlite doesn't care about column definitions. It will happily store any type into any column, regardless of its definition. You can store strings into int columns, sqlite will not complain. It also ignores columns lengths, like "varchar(20)". You can store a 100 character string into that column, no problem. Learn about "type affinity" for more info.

GerbenWijnja
Автор

So which one would you recommend? Specifically for created_at, updated_at?

CanRau