473,394 Members | 1,751 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

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 6253
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.uk :: 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
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.]...
0
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 ?...
0
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...
8
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
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...
4
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...
1
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...
2
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...
3
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...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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...
0
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...

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.