INSERT @TImmobility SELECT ImmobilityId,ImmobilityName,ImmobilityType, EditDate FROM Immobility.Bases
WHERE ExpiredDate>=GETDATE() and QualifyType>=@QualifyType and CityId like @UserCity+'%'
SET @COUNT = @COUNT + ROWCOUNT_BIG()
返回上一次操作的行数!放回的是插入上个表中的行数。