Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

date in where on datetime column clause mysql

You can use MySQL's DATE() function:

WHERE DATE(datetime) = '2009-10-20'
You could also try this:

WHERE datetime LIKE '2009-10-20%'
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #date #datetime #column #clause #mysql
ADD COMMENT
Topic
Name
3+8 =