p; </form> </body> </html>
--------------------------------------------------------------------------------
up_GetTopicList.sql
--------------------------------------------------------------------------------
CREATE proc up_GetTopicList @a_TableList Varchar(200), @a_TableName Varchar(30), @a_SelectWhere Varchar(500), @a_SelectOrderId Varchar(20), @a_SelectOrder Varchar(50), @a_intPageNo int, @a_intPageSize int, @RecordCount int OUTPUT as /*定义局部变量*/ declare @intBeginID int declare @intEndID int declare @intRootRecordCount int declare @intRowCount int declare @TmpSelect NVarchar(600) /*关闭计数*/ set nocount on /*求总共根贴数*/
select @TmpSelect = 'set nocount on;select @SPintRootRecordCount = count(*) from '+@a_TableName+' '+@a_SelectWhere execute sp_executesql @TmpSelect, N'@SPintRootRecordCount int OUTPUT', & << 上一页 [11] [12] [13] 下一页 |