sql - How to get all rows in certain month -


i have column named dc34_date of type date (defined way: date '2013-04-17'). need select rows specific month (for example april). have used where month(dc34_date)=04; doesn't work.

you can use extract date function date. try this.

where extract(month dc34_date) = '4';  

Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -