What's the point of a stored procedure?

前端 未结 12 1029
逝去的感伤
逝去的感伤 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:24

    Stored procedures have lots of benefits. Among other things they help decouple application code from the database tables, simplify database maintenance and versioning and help take the best advantage of DBMS features such as query parameterisation, optimisation and security.

    it'd be useless for any web development team to use them

    Huh? Stored procedures are extremely useful for any developers who need to use a database that supports them.

提交回复
热议问题