474,047 Members | 4,257 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

SQLite - total rows with limit and offset

C.
Hi,

First off, apologies for posting here - I can't find a dedicated
SQLite newsgroup

The other thing I can't find is how to retrieve the total number of
rows which would have been returned by a query if it did not have a
LIMIT and/or OFFSET clause.

(kind of like SQL_CALC_FOUND_ ROWS/FOUND_ROWS() in MySQL)

TIA

C.

Mar 29 '07 #1
1 6340
On 29 Mar 2007 09:57:17 -0700, "C." <co************ @gmail.comwrote :
>First off, apologies for posting here - I can't find a dedicated
SQLite newsgroup

The other thing I can't find is how to retrieve the total number of
rows which would have been returned by a query if it did not have a
LIMIT and/or OFFSET clause.

(kind of like SQL_CALC_FOUND_ ROWS/FOUND_ROWS() in MySQL)
I don't see one from a quick flick through the manual - you'll probably have
to issue another similar query with a count(*) and no limit clause.

--
Andy Hassall :: an**@andyh.co.u k :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
Apr 1 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
546
by: clauschc | last post by:
Hi, When my web page returning no data I got a unhandled exception. How can I handel this error? IndexOutOfRangeException: Index 0 is not non-negative and below total rows count.] System.Data.DataView.GetElement(Int32 index) +43 System.Data.DataView.get_Item(Int32 recordIndex) +5 afgprojekt.Delete_external_user.bnDelExtUser_Click(Object sender,
0
5819
by: D. Dante Lorenso | last post by:
I need to know that original number of rows that WOULD have been returned by a SELECT statement if the LIMIT / OFFSET where not present in the statement. Is there a way to get this data from PG ? SELECT ... ; ----> returns 100,000 rows
0
1209
by: David Laplanet | last post by:
I have a situation when calling a constructor with a lot of parameters. In the following code, I create a System.Data.DataTable instance. I run this code step by step in debug mode and I have lpDataTable.Rows in the Watch window. The problem is that in the watch window, lpDataTable.Rows display "error: cannot obtain value" instead of "{System.Data.DataRowCollection}". This happen only when I call the Class2 constructor with 33 string...
8
1886
by: JoeM | last post by:
I have a list of data in a database(access). How can I get the total rows in the database? Thanks
5
7486
by: Aahz | last post by:
Hello; I have an XML file with data which I show in DataList sucessfully, using DataSet Problem is that XML has about 30 records which is too much I need to show just first 10 ordered by date (10 newest) I don't know how to do this. Any help is highly appreciated
4
1345
by: whizzkid1892 | last post by:
Hi, I have a movie database set-up and would like to create coding to show each movie in the database on its own page, and give the user links in a "page 1, page 2...." type navgation system. I have attempted this with the coding below but when I run the script in my browser I get the following error "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' 1' at line...
1
4763
by: Craig Buchanan | last post by:
Is there a way to determine the total number of records that will be bound to a GridView during the row's dataBound event? considering all of the types of data objects that can be bound to the gridView, there doesn't seem to be a consistent way to test the data source. Insights appreciated. Craig Buchanan
2
10650
by: kveerareddy | last post by:
How can i get the total rows of a table: If i use "select count(*) from <tablename>" it will take lot of time to get the total row count. for example in MSSQL we have "SELECT ROWS FROM sysindexes WHERE id = OBJECT_ID(<Table name>) AND indid < 2" I am looking some system index tables which hold the total rows as a statistic values of the table so that i can query that table to get the total rows faster. My search observations: I...
3
2981
by: lisles | last post by:
hey,i've got a page that displays rows from a db.im want a function to dynamically delete rows.i've put it 1,bt i get an error as follows: Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in C:\xampp\htdocs\panchayats\admin\login_attempt.php on line 36 my code is given below: <?php require_once "../inc/functions.php"; sessionCheck(); ?>
0
10552
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
11612
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
12045
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
11146
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
8710
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7881
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
5429
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4950
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3982
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.