How about
SELECT @last:=MAX(Date + 0) from stat;
Eyal Rif wrote:
Hi,
I have a table with the format of :
char(20),int(7),char(32)
the Date char(20) contents in actually a number(seconds since 1970) -
I want to use a select query that will give the max value according to
number
Hi,
I have a table with the format of :
char(20),int(7),char(32)
the Date char(20) contents in actually a number(seconds since 1970) -
I want to use a select query that will give the max value according to
number value of that column.
select @last:=MAX(Date) from stat1;
What I need to know