What's the point of a stored procedure?

前端 未结 12 1018
逝去的感伤
逝去的感伤 2021-01-21 12:13

Are they useful for anything outside of a database administrator? If I understand them correctly it\'s merely queries that can be saved directly into MySQL, so it\'d be useless

12条回答
  •  隐瞒了意图╮
    2021-01-21 12:48

    If I understand them correctly it's merely queries that can be saved directly into MySQL, so it'd be useless for any web development team to use them.

    Even with that (limited) definition, you're implying that web development teams never have any need of querying a database? Really?

    A well written set of stored procs can completely remove queries from your client application and replace all of that with calls to the procedures. Now, I'm not saying that that's the only way of doing things, or even the right way. There's quite the discussion about that going on overall. But it is a very valid way of using them.

    So, useless for a webdev team?

提交回复
热议问题