我想将我的 ArticleID 向下排序(DESC)。我该如何编辑此代码来做到这一点?太感谢了
ORDER BY CASE
WHEN @order = 'AddArticleType.ArticleID' THEN CONVERT(nvarchar,AddArticleType.ArticleID)
WHEN @order = 'Title' THEN CONVERT(nvarchar, Title)
WHEN @order = 'family' THEN CONVERT(nvarchar, family)
WHEN @order = 'AddArticleType.ArticleType' THEN
CONVERT(nvarchar, AddArticleType.ArticleType )
END