SQL
xugangjava
123
展开
-
大数据量SqlServer效率分页
转载请注明出处http://blog.csdn.net/xugangjava SET @rowsPerPage = 10 SET @pageNum = 3 With SQLPaging As ( Select Top(@rowsPerPage * @pageNum) ROW_NUMBER() OVER (O原创 2011-05-16 10:19:00 · 2432 阅读 · 3 评论 -
Mysql分页存储过程
记下来 以后要用直接过来copy了 http://blog.csdn.net/xugangjava CREATE DEFINER=`root`@`localhost` PROCEDURE `pageSplit`( fromWhere varchar(50), selectColum varchar(500), orderBy varchar(100), co原创 2011-12-20 17:07:44 · 592 阅读 · 0 评论 -
SqlServer 分页存储过程
set ANSI_NULLS ON set QUOTED_IDENTIFIER ON go -- ============================================= -- Author: -- Create date: -- Description: -- ============================================= ALTE原创 2011-12-30 13:10:37 · 1103 阅读 · 0 评论 -
SQL删除树形结构
全部查询到临时表中 然后 批量删除 ALTER PROCEDURE [dbo].[proc_DocDelFolder] @FolderId INT AS BEGIN SET NOCOUNT OFF DECLARE @i INT SET @i = 0 INSERT INTO #FIDS (原创 2012-11-07 10:48:51 · 2526 阅读 · 1 评论