📅  最后修改于: 2022-03-11 15:05:07.359000             🧑  作者: Mango
$rrex = Invoke-Sqlcmd -ServerInstance "OurServer" -Database "OurDatabase" -Query "EXEC stpGetData"
foreach ($rrec in $rrex)
{
if ($rrec.IdVar -notmatch "V-[1-8]{1}")
{
$rrec.Id
}
}