ms access - Working with dates in SQL query using MDB-Tools -


i have been working on project have fetch data ms-access database. using mdb-sql tool running sql queries database. problem occurs when try put clause on datetime column. throws syntax error.

please me how can use dates in column. have tried using these queries -

select * table1 checkintime > '04/22/13 12:15:39'  select * table1 checkintime > #04/22/13 12:15:39# 

mdb-sql displays human-readable dates in results, requires timestamp values in queries -- calculated number of seconds sine 1/1/1970 (the beginning of unix epoch).

so correct query extract records date greater 04/22/13 12:15:39 be:

select * table1 checkintime > 1366650939 

an easy way calculate command line is:

 date --date='04/22/13 12:15:39' +"%s" 

Comments

Popular posts from this blog

python - How to create a legend for 3D bar in matplotlib? -

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -