为什么在DB上使用存储过程以及storeprocedure的优点是什么 [英] Why store procedures are used on DB and what are the advantages of storeprocedure

查看:87
本文介绍了为什么在DB上使用存储过程以及storeprocedure的优点是什么的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为什么在DB上使用存储过程以及storeprocedure有什么优点







< br $>








请帮帮我。

谢谢你



我的尝试:



为什么存储程序在DB上使用,以及storeprocedure的优点是什么

why store procedures are used on DB and what are the advantages of storeprocedure








please help me.
thank u

What I have tried:

why store procedures are used on DB and what are the advantages of storeprocedure

推荐答案

出于同样的原因,你在代码中编写方法或函数并调用它们而不是内联相同的代码:它意味着只需要在一个地方进行更改,如果有修改或错误修复,它更短更容易阅读,并且在使用时不容易出错。
For the same reasons that you write methods or functions in your code and call them instead of in-lining the same code: it means it only needs to be changed in one place if there are modifications or bug fixes, it's shorter and easier to read, and less prone to mistakes when you use it.


这篇关于为什么在DB上使用存储过程以及storeprocedure的优点是什么的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆