我正在使用ngTable在分页表格中显示数据。 但是现在我想在每一列上添加排序。
有人对此有所了解吗?
答案 0 :(得分:3)
Declare @a varchar(50)=201412
Select Case when Cast(Substring(@a,5,2) AS INT) >=7
THEN Cast(Cast(Substring(@a,1,4) AS INT)+1 AS nvarchar)+(Substring(@a,5,2))
ELSE Cast(Cast(Substring(@a,1,4) AS INT)-1 AS nvarchar)+(Substring(@a,5,2))
END
答案 1 :(得分:0)