Can I store SQL Server sort order in a variable?

前端 未结 4 1099
轻奢々
轻奢々 2020-12-16 06:51

I have the following SQL within a stored procedure. Is there a way to remove the IF statement and pass the \'ASC\'/\'DESC\' option as a variable?

I know I could do t

4条回答
提交回复
热议问题