Req #52352 [Opn->Bgs]: SQL Like Requests For Arrays
| From: | scottmac@php.net | Date: | Fri, 16 Jul 2010 05:55:49 +0000 |
| Subject: | Req #52352 [Opn->Bgs]: SQL Like Requests For Arrays | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-152457@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=52352&edit=1
ID: 52352
Updated by: scottmac@php.net
Reported by: larry dot diffey at gmail dot com
Summary: SQL Like Requests For Arrays
-Status: Open
+Status: Bogus
Type: Feature/Change Request
Package: *Database Functions
Operating System: Irrelevant
PHP Version: Irrelevant
New Comment:
This works well with databases because they're indexed and have a
completely
different data model to variables. In PHP internally they're hash
tables.
Previous Comments:
------------------------------------------------------------------------
[2010-07-15 20:39:51] larry dot diffey at gmail dot com
Description:
------------
It seems to me that it would make sense to at least apply the basic
features of the SQL ANSI standard to php arrays that are NOT derived
from another database.
To start with, it could support most of the features found within
SELECT, INSERT, UPDATE and DELETE at least from a single table.
Support could be added later for joins and other complex SQL commands.
Mimic the mysql commands in php. Suppose an array exists called $array.
$qry = php_query("SELECT * FROM $array where name = "Bill");
php_fetch_array($qry);
I believe such a feature would add to the overall ease of use of php,
especially for newer programmers and people coming from other languages
that are already familiar with SQL commands.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=52352&edit=1