The following small series for you to share an ADO call paged query stored procedures of the example, with a good reference value, I hope to help everyone to better use ADO for paging. be interested in ADO and follow the small part.
One, paging
SQL Server database paging query has been SQL Server's short board, Idle to do nothing, think of several methods, assuming that there is a table article, Field ID, year ... (other omitted), Data 53,210 (customer real data, amount of small), page 30
Http://www.cnblogs.com/iamowen/archive/2011/11/03/2235068.htmlPaging is important, and interviews are met. You may wish to review and summarize.1. Create a test environment, (inserting 1 million data takes about 5 minutes).Create DATABASE DBTestUse
In a stored procedure, if the total number of statistics records will seriously affect the efficiency of the same query conditions the total number of records must be the same, so if the first page to save the total number of records, click on the
Create a table and add 3 million data
Use Stored CREATE TABLE
UserInfo (--Creating table
ID int IDENTITY (1,1) PRIMARY key NOT NULL,--add primary key and identity column
UserName varchar (m)
)
DECLARE @i INT--Add 3 million data, about 4
This example describes the MSSQL paging stored procedure. Share to everyone for your reference, specific as follows:
Use [Db_common] Go/****** object: StoredProcedure [dbo]. [Com_pagination] Script Date: 03/09/2012 23:46:20 ******/SET
What is stored procedures: stored procedures can be said to be a recordset, it is a number of T-SQL statements composed of blocks of code, these T-SQL statement code like a method to implement a number of functions (for a single table or multiple
Source: http://www.cnblogs.com/knowledgesea/archive/2013/01/02/2841588.htmlIntroduction to Stored ProceduresWhat is a stored procedure : A stored procedure can be said to be a recordset, which is a block of code consisting of some T-SQL statements
CREATE PROCEDURE Proc_page_withtopmax(@pageIndex int,--Page index@pageSize int,--display number per page@pageCount int output,--total pages, output parameters@totalCount int output--Total number of bars)AsBeginSET NOCOUNT on;declare @sql nvarchar (10
We provide this mysql query page, which is fast and requires Paging for hundreds of millions of data records. Let's take a look at the detailed Writing of the mysql stored procedure.
We provide this mysql query page, which is fast and requires
For more information about how to add, modify, delete, and describe fields, see.
For more information about how to add, modify, delete, and describe fields, see.
The Code is as follows:
-- New table Field
ALTER procedure [dbo].
Use jcfxbl API to operate databases in Android
Document Sorting: Wang Qiang
Http://blog.csdn.net/ex_net/article/details/7833641
Author: Zhang jianbo mailbox: 281451020@qq.com Phone: 13577062679 welcome to exchange calls!
I. Data interfaces
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.