I'm trying to query all data with dates that are greater or equal to >= than the current date.
Note:
- The format of the dates in the
columndatecolumn isYYYY-MM-DD. - I used
database,table,columndateto represent the database,table, and column for simplicity. - MySQL 5.5 (version)
//STATEMENT
SELECT * FROM database.table WHERE columndate >= CONVERT(VARCHAR(10),GETDATE(),120);
Question: Why is my sql statement failing?