[Quote=引用 12 楼 sdnzhqng 的回复:]
自己写出来了
select case when month(@date)>=7 then convert(varchar(4),year(@date))+'0630'
else convert(varchar(4),(year(@date)-1))+'1231' end
wang520d提示了我
多谢啦
着急啊
[/Quote]
顶
自己写出来了
select case when month(@date)>=7 then convert(varchar(4),year(@date))+'0630'
else convert(varchar(4),(year(@date)-1))+'1231' end
wang520d提示了我
多谢啦
着急啊