Stored Procedure 1

Source: Internet
Author: User

Stored procedures make it easier to manage databases and display information about databases and users. A stored procedure is a pre-compiled set of SQL statements and optional control flow statements. It is stored in a name and processed as a unit. Stored procedures are stored in the database and can be used by applicationsProgramExecute through one call, and allow the user to declare variables, conditional execution, and other powerful programming functions.

Stored Procedures include program streams, logic, and queries to databases. They can accept parameters, output parameters, return one or more result sets, and return values.

Stored procedures can be used for any purpose of using SQL statements. They have the following advantages:

  • You can execute a series of SQL statements in a single stored procedure.

  • You can reference other stored procedures from your stored procedures, which simplifies a series of complex statements.
  • The stored procedure is compiled on the server when it is created, so it runs faster than a single SQL statement.

The function of a stored procedure depends on the function provided by the database.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.