使用存储过程解决的具有挑战性的现实世界示例或情况的示例
目前,我正在努力获得精通数据库的不同相关技能。刚刚读完存储过程,想知道它如何应用于现实世界的情况(如果有的话)?
希望有人可以列出一些已解决或需要通过存储过程解决的具有挑战性的现实世界/网络问题。任何包含更多此类现实世界问题或具有挑战性的示例的网络/书籍/资源列表也将受到欢迎。
Currently I'm working on gaining the different relevant skills in becoming proficient with database. Just finished reading up on stored procedures and wondering how could it apply to real world situations if any?
Hope someone could list a number of challenging real world/web problems resolved or requiring resolution by stored procedures. Any web/books/list of resources with more of such real world problems or challenging examples would be gladly welcomed too.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
几乎任何批处理例程,其中有大量数据需要处理,并且您不希望在应用程序服务器或客户端应用程序与数据库之间进行大量“来回”。
当您想要严格控制所发生的事情时,几乎可以在任何安全环境中使用。您可以对一个过程(实际上是一个业务流程)进行授权,而不是对允许不加区别的数据更新的通用授权。
Pretty much any batch routine, where there's lots of data to process and you don't want a lot of 'back and forth' between an application server or client application and the database.
Pretty much any secure environment when you want tight control over what goes on. You can make grants on a procedure, effectively a business process, rather than a generic grant that allows indiscriminate data updates.
我突然想到:
我不会说“性能”,因为教科书中的典型例子与准备好的陈述同样快。
Off the top of my head:
I won't say "performance", because the typical examples in the schoolbooks are equally fast with a prepared statement.