Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Re: [PEAR] Re: DB getRow() and limit 1
On Wed, 24 Nov 2004 22:59:29 +0100, Lukas Smith <lsmith@php.net> wrote:
> Brice Joly wrote: 
>
> no it does not.
>

Because some DB backends don't support it or have different syntax for
it? Could the backends which support it implement a wrapper which adds
it?

--
Justin Patrin

Report this thread to moderator Post Follow-up to this message
Old Post
Justin Patrin
11-25-04 01:56 AM


Re: [PEAR] Re: DB getRow() and limit 1
Justin Patrin wrote:
> On Wed, 24 Nov 2004 22:59:29 +0100, Lukas Smith <lsmith@php.net> wrote:
> 
>
>
> Because some DB backends don't support it or have different syntax for
> it? Could the backends which support it implement a wrapper which adds
> it?

there is emulation in place for all relevant drivers to handle limit.
however in some cases its rather nasty, so the best way is just to write
proper queries.

regards,
Lukas

Report this thread to moderator Post Follow-up to this message
Old Post
Lukas Smith
11-25-04 01:56 AM


Re: [PEAR] Re: DB getRow() and limit 1
Lukas Smith wrote:
> Justin Patrin wrote:
> 
>
>
> there is emulation in place for all relevant drivers to handle limit.
> however in some cases its rather nasty, so the best way is just to write
> proper queries.

note however that I have added it to MDB2 a while back if i remember
correctly. The two main reasons why I have it there is that in MDB2 its
easier to combine limits with any query that executes a query and also I
have stayed away from overly complex limit emulations (which means that
for those RDBMS they get a more severe performance hit when people rely
on limit).

regards,
Lukas

Report this thread to moderator Post Follow-up to this message
Old Post
Lukas Smith
11-25-04 01:59 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PHP Pear archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 06:45 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.