"Lance Lovette" <[EMAIL PROTECTED]> wrote:
> What is the best or most efficient way to compare a mix of DATETIME and
> TIMESTAMP values using GREATEST()? Some values are columns and some are
> literals. Should I convert TIMESTAMP values to DATETIME formatted strings
> using DATE_FORMAT or convert everything to integers using UNIX_TIMESTAMP and
> then convert the result back to a DATETIME with FROM_UNIXTIME? I'm using
> MySQL 4.0.16.

You shouldn't permorm explicit conversation if you use GREATEST() function with 
TIMESTAMP/DATETIME column types.



-- 
For technical support contracts, goto https://order.mysql.com/?ref=ensita
This email is sponsored by Ensita.net http://www.ensita.net/
   __  ___     ___ ____  __
  /  |/  /_ __/ __/ __ \/ /    Egor Egorov
 / /|_/ / // /\ \/ /_/ / /__   [EMAIL PROTECTED]
/_/  /_/\_, /___/\___\_\___/   MySQL AB / Ensita.net
       <___/   www.mysql.com




-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to