I have a fast question about some code of mine that doesnt work. I have an SQL query looking like this that wont work
SELECT * FROM data WHERE datefield=2010-09-02
I dont get an error msg but I dont get the row that contains that specific date in the DB. If I put ' around the date like
SELECT * FROM data WHERE datefield='2010-09-20'
I get the error 3464: Data type mismatch... In the DB datefield is specified as "Short date"
Would be great if anyone wanna tell me whats wrong :)


Sign In
Create Account


Back to top









