_ | 覦覈襦 | 豕蠏手 | 殊螳 | 譯殊碁
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

覲牛伎螻 矩る 襷企朱 螳伎 濠 螳 覲企. 蠏碁覃 讌 讀蟇一 覦豺 ′ 豺 伎 觜 蟒 伎螻 螳 磯Μ 譯朱 覓伎 る 蟆 蟆企. 襭 5覿 螳 語 蟆一 (企譴)