Sqlserver
 sql >> Database >  >> RDS >> Sqlserver

Query DateTime solo per l'anno in SQL Server

select id,name,bookyear from tab1 where year(bookyear) = 2009