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

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

    There's possibly a phobia of stored procedures with mysql, partly due to not being overwhelmingly powerful ( compared to Postgresql and even MSSQL, mysqls stored procedures are greatly lacking ).

    On the plus: They make interfacing with it from more than one language easier.

    If somebody states that "using stored procedures is bad because its not portable to different databases" then this of course means they think you're likely to switch databases, which means they in turn saying they think you shouldn't be using mysql.

    It is popular to use ORM's these days, but I personally think ORM is a BadThing (Question:82882)

提交回复
热议问题