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
Post a Comment