简体   繁体   中英

how to select date in sql query

I added a lot of values in SQLite. How do I write query for searching dates earlier than today ?

Further details are available in the sqlite documentation ... but the following should be the sort of thing you're after.

SELECT columnA, columnB
FROM tableX
WHERE dateColumn < date('now')

If this doesn't help, you should look to post more details of your tables, related code, etc..

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM