system
(system)
May 26, 2009, 4:40pm
1
Hi guys,
I got 2 Newbie question for you:
If I want to save just a DATE (2009/01/10)in a mySql Database. Which Database ColumnType is best for it? DATE? ??
If I want to save a DateTime ( 2009/01/10 - 10hours2minutes20seconds) which format shall I when declaring the table in mysql? Datetime?
Will Yii be able to handle both in combination with innoDb MySql?
Thanks for your great support
Rassy
system
(system)
May 27, 2009, 5:05pm
2
Hi guys,
does anyone have a tip? I am in the middle of my database design and would like to be sure about how to declare date and timestamps⦠I am a but confused because the BLOG demo actually uses INTEGER to save DATEā¦
Any ideas?
Thanks for your support
Rassy
bitmatix
(Bitmatix)
May 27, 2009, 5:25pm
3
I'm using both types (DATE and DATETIME) when needed. You can also use INT fields to store unix timestamps.