Stored procedures a no-go in the php/mysql world?

前端 未结 10 1672
粉色の甜心
粉色の甜心 2020-12-29 06:53

I\'m quoting part of an answer which I received for another question of mine:

In the PHP/MySQL world I would say stored procedures are no-go

10条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-29 07:08

    Do you have a specific need in mind which makes you consider them? Stored procedures are much less portable than "plain" SQL, that's usually why people don't want to use them. Also, having written a fair share of PL/SQL, I must say that the procedural way of writing code adds complexity and it's just not very modern or testable. They might be handy in some special cases where you need to optimize, but I'd certainly think twice. Jeff has similar opinions.

提交回复
热议问题