Re: How to use SQL "LIMIT" keyword against an MDB file



On Mon, 28 Jan 2008 14:37:03 -0700, Martin wrote:

I'm trying to adapt a PHP script that was written to use MySQL, so that
it will work with an MSAccess MDB file.

An important part of the script makes use of the SQL "LIMIT" keyword
available in MySQL. eg: "SELECT MyField FROM MyTable LIMIT 40,10" to
select 10 records beginning at the 41st record.

Can anyone tell me how I can achieve this same functionality when using
ODBC functions to access an MDB file? I think I can set ROWCOUNT (or
possibly TOP) to retrieve only 10 records but how do I get it to start
at the 41st record?

You just lost an enormous amount of functionality. I'm assuming this is
something you had to do.

Pull all of the records and then programatically strip out the records you
don't want from the array.

--
I told you this was going to happen.

.



Relevant Pages

  • Re: How to use SQL "LIMIT" keyword against an MDB file
    ... I'm trying to adapt a PHP script that was written to use MySQL, ... that it will work with an MSAccess MDB file. ... Why don't you try just not being an arrogant asshole in the first place? ... same functionality as you would with an SQL server doesn't it? ...
    (comp.lang.php)
  • Re: How to use SQL "LIMIT" keyword against an MDB file
    ... that it will work with an MSAccess MDB file. ... You just lost an enormous amount of functionality. ... though I don't claim to be Mr. Grand Wizard PHP ... php query functionality for the file. ...
    (comp.lang.php)
  • Re: How to use SQL "LIMIT" keyword against an MDB file
    ... I'm trying to adapt a PHP script that was written to use MySQL, ... when using ODBC functions to access an MDB file? ... Why don't you try just not being an arrogant asshole in the first ... have the same functionality as you would with an SQL server doesn't it? ...
    (comp.lang.php)
  • Re: How to use SQL "LIMIT" keyword against an MDB file
    ... I'm trying to adapt a PHP script that was written to use MySQL, ... that it will work with an MSAccess MDB file. ... every suggestion i made works. ... same functionality as you would with an SQL server doesn't it? ...
    (comp.lang.php)
  • Re: How to use SQL "LIMIT" keyword against an MDB file
    ... ODBC functions to access an MDB file? ... You just lost an enormous amount of functionality. ... let me pull all the records from my 55 million rowed table into a php array...THEN strip out the unwanted ones from the array. ... Access doesn't have the same capabilities of MySQL. ...
    (comp.lang.php)