select cidx, CDATE, UNIX_TIMESTAMP(CDATE) from datatypetestm;
select cidx, CDATETIME, UNIX_TIMESTAMP(CDATETIME) from datatypetestm;
select cidx, UNIX_TIMESTAMP() from datatypetestm;
select cidx, UNIX_TIMESTAMP('2009-02-28') from datatypetestm;
select cidx, UNIX_TIMESTAMP('2009-07-04') from datatypetestm;
select cidx, CDATE from datatypetestm order by UNIX_TIMESTAMP(CDATE), cidx;
select cidx, CDATETIME from datatypetestm order by UNIX_TIMESTAMP(CDATETIME), cidx;
