我对SQLServer2005有一个很长的查询,我试图找到在PHP中使用sqlsrv_query函数的结果集。这是我的示例查询。为了简洁起见,我删除了变量声明和SET语句以及CASE语句中的大部分WHEN条件。DECLARE@TotalTableTABLE(SourceNamevarchar(50),GrossRevenuefloat,TotalOrderCountint,FBAOrderCountint,PostageExpensefloat,MarketplaceFeesfloat,PickupExpensefloat,COGSfloat,AvgOrderfloat);INSERT