zoukankan      html  css  js  c++  java
  • Why we use stored procedure than Sql statement?

    A stored procedure is, as the name suggests, a query stored within the database that returns the results required to create the output you
    want. This approach hides the structure of the database and tables from the user, as they just execute the stored procedure and get back a rowset (a series of rows of data) or whatever result the stored procedure is designed to generate. It is also more efficient because the database server can precompile the stored procedure, and reuse the compiled code. In addition, in enterprise-level databases, the administrator can
    set access permissions on the tables so that users can only run a stored procedure, and not access the data in the tables directly.

    There are also benefits from separating the user interface code (the Web Form) from the data access code when using a stored procedure. Providing that the stored procedure returns the same results, the actual structure of the underlying tables can change as required—without requiring any changes to the pages that access the data.

    note : Wrox.ASP.dot.NET.2.0.Visual.Web.Developer.2005.Express.Edition.Starte
              chapter 3

  • 相关阅读:
    有向强连通分支Tarjan算法
    让理科生沉默,让文科生落泪的题
    迷宫求解(数据结构栈应用)
    编程中无穷大常量的设定技巧
    poj 3159 差分约束+spfa
    codevs 1690 线段树
    uvalive 2756 环形排列颠倒的次数
    poj 2182 树状数组
    uva 10943 数学
    uva 10780 分解质因数
  • 原文地址:https://www.cnblogs.com/qishichang/p/1203616.html
Copyright © 2011-2022 走看看