sql - Informix cast Date to integer -


hi there way cast date integer 2014/05/29 => 20140509?

because database @ work has such value, , need make comparison. searched internet thing found conversion milliseconds since 1970.

i haven't used informix in ages, believe looking for. first format date string in format want, cast integer.

to_char(mydatefield,'%y%m%d')::integer 

Comments

Popular posts from this blog

php - render data via PDO::FETCH_FUNC vs loop -

c# - Avoiding duplicate methods for Task and Task<T> -

javascript - Which segment of a polyline was clicked? -