VB.net SQL statement to query 1 yr old Timestamp
问题 I want to display in my gridview all data whose timestamp is not older than 1 years from current date. My timestamp is formatted like so: 20110125-071830 or yyyymmdd-hhmmss I have tried to reference : Retrieve rows less than a day old: Select * from table_name WHERE DATE(timestampVal) > DATE(NOW() - INTERVAL 1 YEAR); but got missing expression flag I also tried various others; however, my timestampVal is different simply by how it is formatted. Like for example: https://community.oracle.com