sql - How to fetch data from a query by extracting month from the created date field -


i have table , want extract data on basis of month value of created date field. how can obtained? here query:

select * (table name a) select extract (month a.createddate )from table name  

table contains field timestamp type.

if need apply filter on month of timestamp column:

select * yourtable extract (month yourfield) = ... 

Comments

Popular posts from this blog

angular - Is it possible to get native element for formControl? -

unity3d - Rotate an object to face an opposite direction -

javascript - Why jQuery Select box change event is now working? -