_ | 覦覈襦 | 豕蠏手 | 殊螳 | 譯殊碁
FrontPage › YYYYMMDD襦襷願規蠍
Describe YYYYMMDD襦襷願規蠍 here

declare @dt char(8)
set @dt = '19760308'

select 
	datediff(yy, @dt, getdate())
+	case when right(@dt, 4) > right(convert(char(8), getdate(), 112), 4) then -1 else 0 end


蠍 蠍郁鍵..
企: : るジ讓曙 襦螻豺 企Ν 譯殊語. 襦螻豺
EditText : Print : Mobile : FindPage : DeletePage : LikePages : Powered by MoniWiki : Last modified 2018-04-13 23:12:52

襭 襭 蠍語企 螳螻 玖骸 苦 蠍語企 るゴ.