LooieENG Posted May 22, 2008 Share Posted May 22, 2008 What column type should I have to store a timestamp (like 142567442)? If I choose timestamp, it makes it YYYY-MM-DD HH-MM-SS. Just bigint? Link to comment https://forums.phpfreaks.com/topic/106705-mysql-timestamp-question/ Share on other sites More sharing options...
revraz Posted May 22, 2008 Share Posted May 22, 2008 int is fine Link to comment https://forums.phpfreaks.com/topic/106705-mysql-timestamp-question/#findComment-546985 Share on other sites More sharing options...
LooieENG Posted May 22, 2008 Author Share Posted May 22, 2008 Thanks. Also, just quickly, is there a significant difference between TEXT and BLOB, and is it better to use VARCHAR? I think I read something like text/blob will always be the same size, whereas varchar is as big as the data it contains plus one byte? Is this right? And is this good for a blog post table? id > tinyint title > tinytext content > text user > varchar(32) time > int Thanks. Link to comment https://forums.phpfreaks.com/topic/106705-mysql-timestamp-question/#findComment-547005 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.