Thanks. That's good to know about LIMIT being specific to MySQL.
Kelly
-----Original Message-----
From: web400-bounces@xxxxxxxxxxxx [mailto:web400-bounces@xxxxxxxxxxxx]
On Behalf Of Scott Klement
Sent: Thursday, December 03, 2009 2:48 PM
To: Web Enabling the AS400 / iSeries
Subject: Re: [WEB400] php vs net.data
Larry,
The LIMIT feature isn't a part of the mysql_query() routine. It's a
non-standard keyword that's allowed in SQL statements in MySQL.
Anywhere that you can run SQL SELECT statements against a MySQL
database, you can use the LIMIT keyword.
IBM DB2 does not support a LIMIT keyword. This has nothing whatsoever
to do with PHP, it has to do with the IBM DB2 database vs. the MySQL
database.
You can certainly use MySQL from PHP on i. You can even use it with the
IBMDB2I storage engine for MySQL to let MySQL query a Physical File.
There are ways of achieving similar functionality via DB2 SQL statments,
but they aren't as simple or elegant. We've had several discussions
about them in forums in the past... you might try searching the
archives.
Larry Kleinman wrote:
Pretty cool, Kelly. The only question is will it work with ZendCore
using
i5_query instead of mysql_query?
As an Amazon Associate we earn from qualifying purchases.