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

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

    I think that using stored procedures can offer some abstraction in certain applications, as in any where you would use the same SQL code chunk to update or add the same data, you could then create the one sproc save_user($attr.....) rather that repeating yourself all over the place.

    Agreed the syntax is hairy and if your used to MSSQL and oracle sprocs there are differences that can fustrate.

提交回复
热议问题