MSSQL:
Select * from (select TOP size * FROM (select top (start * size) * from table_name order by id ASC) as aSysTable order by id DESC) as bSysTable order by id ASC
Size: number of records retrieved each time
Start: number of requested pages
Preface:
The task of the company's project development last week was to manage basic data. The aspx page of asp.net embedded in Sharepoint2010 encountered a variety of amazing problems, because I only had some knowledge about sharepoint before, but
At PERCONAPERFORMANCECONFERENCE2009, several engineers from Yahoo brought a "EfficientPaginationUsingMySQL" report with many highlights. This article is a further extension based on the original article. First, let's take a look at the basic
Phpmssql several common database paging SQL statements when writing MIS systems and Web applications, we all involve interaction with the database. if there is a large amount of data in the database, retrieving all records at a time takes up a large
Efficient mysql paging method and principle bitsCN.com
First, let's take a look at the basic principles of paging:Mysql> explain SELECT * FROM message order by id desc limit 10000, 20G ******************* 1. row ************** id: 1 select_type:
A query for numeric data:SELECT * from Tb_name WHERE sum > 100;Query predicate:>,=,,!=,!>,!,=Two query stringsSELECT * from tb_stu WHERE sname = ' Xiao Liu 'SELECT * from Tb_stu WHERE sname like ' Liu 'SELECT * from Tb_stu WHERE sname like '%
A simple paging program for php and mysql data. If you have a simple php and mysql data paging program, please refer to it. The code is as follows: Copy the code? PhpAdamsCustomPHPMySQLPaginationTutorialandScriptYouhaveto a simple php and mysql data
A query for numeric data:
SELECT * from Tb_name WHERE sum > 100;
Query predicate:>,=,,!=,!>,!,=
Two query strings
SELECT * from tb_stu WHERE sname = ' Xiao Liu '
SELECT * from Tb_stu WHERE sname like ' Liu '
SELECT * from Tb_stu WHERE sname like '%
The paging SQL statement of the phpmssql database. When writing MIS systems and Web applications, we all involve interaction with the database. if there is a large amount of data in the database, we can retrieve all the records at a time, it takes
Thank you for your help !! I want to make it a button under review and click review. It's just that my code won't be implemented. how can I add a button and how can I do it? big brother and big sister can help me !! Score delivery
Reply to
1
--
Retrieve records from the table from entry m to entry N: (not in version)
2
3
Select
Top
N
-
M
+
1
*
4
From
Table
5
Where
(ID
Not
In
(
Select
Top
M
-
Last week, I was asked by an online friend how to select the nth record of the nth table in SQL2000? (That is, how do I modify the statement 'select ID, name, title from website order by ID DESC 'to explain to the target)I just gave it back.Select
MySQL-- Query 10th to 20 data records The code is as follows:Copy code SELECT * FROM table_name WHERE... LIMIT 10, 20; SQLServer The code is as follows:Copy code -- Query the first 10 | 10% data entriesSelect top 10 | 10% * FROM table_name;
MySQL paging Analysis Principle and efficiency improvement, mysql paging Efficiency Improvement
MySQL paging Analysis Principle and Efficiency Improvement
On percona performance conference 2009, several Yahoo engineers brought a "Efficient
1. Create the ODBC data source photo (this time we use Oracle 9i. If you do not understand the detailed configuration, contact me again)2. Compile the DataBaseConnection. java file and put it into the class file directory supported by PHP.
Package
If you have a simple php and mysql DATA paging program, please refer to it.
The Code is as follows:
Copy code
// Adam's Custom PHP MySQL Pagination Tutorial and Script// You have to put your mysql connection data and alter
Mysql common statements
Select * from db_user where user_type in (5, 8); select * from db_user where user_type between (5, 8); select * from db_user where user_name like '% s % '; " % "can match one or more characters select * from db_user where
Add 23 common MySQL query statements to favorites1. query numeric data:SELECT * FROM tb_name WHERE sum> 100;Query predicate:>, =, ,! =,!> ,! =, 2. query strings
SELECT * FROM tb_stu WHERE sname = 'Liu 'SELECT * FROM tb_stu WHERE sname like 'Liu %'
Mysql selects the previous and next data records and sorts the data records from the top, down, and down1. The list sorting function needs to be completed! Shows the effect:2 setting ideas
Set a rank as the timestamp. By selecting "Move Up", this
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.