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

前端 未结 10 1557
粉色の甜心
粉色の甜心 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:23

    I would not say "stored procedures are a no-go", I would say "Don't use them without a good reason".

    MySQL stored procedures have a particularly horrible syntax (Oracle and MSSQL are pretty awful too), maintaining them just complicates your application.

    Do use a stored procedure if you have a real (measurable) reason to do so, otherwise don't. That's my opinion anyway.

提交回复
热议问题