How can i select date older than today in mysql database -


i have following code outputs past 30 days entries phpmyadmin sql database. work , shows past 30 days entries, displays today's date entries, don't want. there way, past 30 days entries, excluding today's date? hers's code

("select * products  date between date_sub(now(), interval 30 day) , now()") 

try following query:-

select * products  date between date_sub(now(), interval 30 day) , date_sub(now(), interval 1 day) 

Comments

Popular posts from this blog

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -

javascript - oscilloscope of speaker input stops rendering after a few seconds -