你的SQL语句没有错,不过用date_format得出的形式不知道是不是你想要的
mysql> select now()>date_format('2006-01-01','%y%m%d');
+------------------------------------------+
| now()>date_format('2006-01-01','%y%m%d') |
+------------------------------------------+
| 1                                        |
+------------------------------------------+
1 row in set (0.02 sec)mysql> select date_format('2006-01-01','%y%m%d');
+------------------------------------+
| date_format('2006-01-01','%y%m%d') |
+------------------------------------+
| 060101                             |
+------------------------------------+
1 row in set (0.01 sec)详细的日期与时间函数请看看这里:
http://dev.mysql.com/doc/refman/5.0/en/date-and-time-functions.html