Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

year format in date mysql

cur.execute('''SELECT id,home,visitor,finalscorehome,finalscorevisitor,eldatetime FROM games where Month(eldatetime) = Month(%s) AND YEAR(eldatetime) = Year(%s) AND DAY(eldatetime) = DAY(%s)''',(gamedate.date(),gamedate.date(),gamedate.date()))
                
Source by www.tutorialspoint.com #
 
PREVIOUS NEXT
Tagged: #year #format #date #mysql
ADD COMMENT
Topic
Name
6+9 =