Wae*_*oul 22 t-sql stored-procedures
简单地说,我有这个SQL语句:
EXEC xp_cmdshell 'tasklist'
Run Code Online (Sandbox Code Playgroud)
我们可以使用order by
或订购或过滤结果where
吗?
谢谢,
Wae*_*oul 13
我检查了jamietre链接,这是完整的答案:
Create table #MyTempTable
(output varchar(max))
INSERT INTO #MyTempTable
EXEC xp_cmdshell 'tasklist'
select * from #MyTempTable where output like 'ie%' order by output
Run Code Online (Sandbox Code Playgroud)
谢谢大家......