按www.devze.com年查询 select to_char(date::DATE, \'YYYY\') as year,sum(shares) as shares, sum(visits) as visits