Re: OOP to run sequential SQL queries?
| From: | Marco Behnke | Date: | Sun, 17 Feb 2013 22:43:53 +0000 |
| Subject: | Re: OOP to run sequential SQL queries? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-320231@lists.php.net to get a copy of this message | ||
Am 17.02.13 17:00, schrieb AmirBehzad Eslami:
> Dear list,
>
> We have a bunch of SQL-queries, they should be executed in
> a sequential order, with a defensive programming style in mind.
I don't understand what you want?
Queries are executed sequentially or do you plan to create a
multi-process PHP application?
>
> We were thinking to implement the solution as "Stored Procedures"
> instead of a PHP solution that runs SQL queries, but an article in
> Coding Horro recommendeds to avoid SP for good reasons:
>
>
> http://www.codinghorror.com/blog/2004/10/who-needs-stored-procedures-anyways.html
>
> Now we're going to carry on in PHP, and my experience says that
> we should write the solution in a procedural-style, instead of OOP.
>
> Is there any benefit to use OOP in these situations?
>
> Please share your thoughts.
>
> Thanks,
> -behzad
>
--
Marco Behnke
Dipl. Informatiker (FH), SAE Audio Engineer Diploma
Zend Certified Engineer PHP 5.3
Tel.: 0174 / 9722336
e-Mail: marco@behnke.biz
Softwaretechnik Behnke
Heinrich-Heine-Str. 7D
21218 Seevetal
http://www.behnke.biz
Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc
Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc