Rok drukowania daty SQL
SELECT EXTRACT(YEAR FROM CURRENT_DATE)
Tutorial Binger
SELECT EXTRACT(YEAR FROM CURRENT_DATE)
...
WHERE YEAR(date_field) = '2021'
select year(uploadtime) as yy,count(*),sum(filetypeid) from sys_base_fileindex GROUP BY yy
1
select
to_char(a.create_date,'yyyy') as date_year,
count(*) as num
from sys_bug a
left join sys_user u on u.id = a.create_by
left join sys_office o on o.id = u.office_id
group by to_char(a.create_date,'yyyy')
1234567