You are here: Re: How to use SQL "LIMIT" keyword against an MDB file « PHP Programming Language « IT news, forums, messages
Re: How to use SQL "LIMIT" keyword against an MDB file

Posted by NC on 01/30/08 00:48

On Jan 28, 1:37 pm, Martin <martinval...@comcast.net> 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.

Good luck...

> 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?

You can't. Access does not support LIMIT clauses.

The closet thing you can do is to run this query:

SELECT TOP 50 MyField FROM MyTable

and then loop through first 40 records returned without doing
anything and start your processing from the 41st record.

Sources:
http://office.microsoft.com/en-us/access/HA012314971033.aspx
http://office.microsoft.com/en-us/access/HA012313511033.aspx

Cheers,
NC

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация