>Mostly because use 2 field to represent the same data is a waste of storage
Oh, ok. So you're sending a non-date value and you want to transform it into
actual character presentation of a date value, but making things easier on
is a waste of storage.
Feel free to continu jumping through hoops and try to solve the problem down
the line instead of right there at the beginning.
Database Workbench - development tool for MySQL, and more!
Database development questions? Check the forum!
> >The aplication which is writing to the database is sending the date
> in unix
> >I can't no change that, so i suposse using a triger will help.
> >The application pass the 'xxxxxx.xx' value when is inserting to the
> Righto. Well, what does this mean then:
> >im converting the unixtime to "normal" time with from_unixtime.
> >So after i did the convertion i write the result to the table.
> >It works ok when i write to a varchar column, but not to a date
> Why not store the "unixtime" value and use an additional column to
> an actual DATE value instead?