mysql - Quering database in real time -


i retrieving data database having specific date , hour. supposing see data in real time. there way automatically extract data without specifying exact data , time? here query:

select   store,          count(bananas)     database_name    date_hour between '2017-04-06 07:00:00' , '2017-04-07 07:00:02' group sore 

select data last hour:

select   store,          count(bananas)     table_name     date_hour > date_sub(now(), interval 1 hour) group store 

Comments

Popular posts from this blog

javascript - Confirm a form & display message if form is valid with JQuery -

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -