I have one query I am using following query to select record from MySQL
mysql> select VID from tm_visitor where DATE(INTIME)=DATE('2012-08-01');
then I am getting result as
+--------+
| VID |
+--------+
| 000001 |
| 000002 |
| 000003 |
| 000004 |
+--------+
4 rows in set (0.00 sec)
But when I use query as
mysql> select VID from tm_visitor where DATE(INTIME)=DATE('01-AUG-2012');
it gives me nothing
Empty set, 8 warnings (0.00 sec)
How to solve this?
try this
See MySQL Reference for more examples