本文介绍了我可以使用 Order by 对存储过程结果进行排序吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
简单地说,我有这个 SQL 语句:
Simply, I have this SQL statment:
EXEC xp_cmdshell 'tasklist'
我们可以使用order by
或where
对结果进行排序或过滤吗?
can we order or filter the results by using order by
or where
?
谢谢,
推荐答案
需要先将结果输出到临时表中.这应该会告诉你怎么做
You need to output the results into a temporary table first. This should show you how to do it
这篇关于我可以使用 Order by 对存储过程结果进行排序吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!