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

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

android - ConstraintLayout: Realign baseline constraint in case if dependent view visibility was set to GONE -

c# - Populating Gridview inside Listview ItemTemplate On Web User Control from Code Behind -