代码如下: ALTER PROCEDURE [a0919194122].[dnt_getappinvitelist] uid int, pageindex int, pagesize int AS DECLARE startRow int, endRow int SET startRow = (pageIndex – 1) * pagesize IF pageindex = 1 BEGIN EXEC( ‘SELECT TOP ‘+pagesize+’ [id],[typename],[appid