Hello Mark,

Wednesday, April 7, 2004, 6:35:31 PM, you wrote:

MA> But what about MsSQL, Oracle and postgres to name a few. I have worked
MA> on a few projects where you read from one db and load into another db.
MA> Dates then become the spawn of satan.

But the MySQL syntax for insert is not the same for other DBs, so
you'll ideally need one insert function per DB type anyway :) at which
point my original comment applies again.

There are other scenarios too.. i.e.

INSERT INTO table (val, val2) VALUES (1, val+1)

MA> True that it wastes CPU time, but in todays climate, having developers
MA> churning out manageable , readable code is better then something  that
MA> looks like the perl DeCSS program.  If you need the nano seconds that
MA> much buy a better box !.

The way people on the list suggested formatting the query IS readable
and quickly debug'able to anyone who understands SQL. Obfuscating that
into a function could be considered un-readable to some? But, whatever
floats your boat mate ;)

-- 
Best regards,
 Richard Davey
 http://www.phpcommunity.org/wiki/296.html

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to