At 3:00 PM -0700 10/7/07, Adam Megacz wrote:
Hello. This is probably a stupid question, but...
Is there any way to include some phrase in a SELECT clause that will
match only the Nth-Mth rows of a table, for some values of N and M?
Note that ROWID isn't what I'm looking for -- if you delete ro
select * from table limit (n-1),(m-n)
n-1 because it is 0-based
http://www.sqlite.org/lang_select.html
On 10/8/07, Adam Megacz <[EMAIL PROTECTED]> wrote:
>
> Hello. This is probably a stupid question, but...
>
> Is there any way to include some phrase in a SELECT clause that will
> match only t
"LIMIT 4 OFFSET 100" at the end of the select.
On 10/7/07, Adam Megacz <[EMAIL PROTECTED]> wrote:
>
> Hello. This is probably a stupid question, but...
>
> Is there any way to include some phrase in a SELECT clause that will
> match only the Nth-Mth rows of a table, for some values of N and M?
>
The only way I can think of doing it without modifying the table (i.e.
adding a rowid column that's updated on every delete) is to select all
the rows on the table
and then increment count for every step that returns a row.
Adam Megacz wrote:
Hello. This is probably a stupid question, but...
Hello. This is probably a stupid question, but...
Is there any way to include some phrase in a SELECT clause that will
match only the Nth-Mth rows of a table, for some values of N and M?
Note that ROWID isn't what I'm looking for -- if you delete rows from
a table the ROWID no longer matches th
5 matches
Mail list logo