MySQL Learning notes (16) Stored procedures

Source: Internet
Author: User

(Stored procedure: (ForSQL programming, just know)

1, stored procedures: similar to a function, is to encapsulate a piece of code. When you want to execute this piece of code, you can do so by calling the stored procedure. In the body of the statement in the package , you can use if/else, Case, while and so on to control the structure, SQL programming.

2. View stored procedures:

Show procedure status;

3. Delete:

Drop procedure process name;

4. Call:

Call process name ();

5.in MySQL , the difference between stored procedures and functions:

1. different names.

2. The stored procedure does not return a value.


This article is from the "Learning and Exchange" blog, please be sure to keep this source http://chenhaolinux.blog.51cto.com/9609922/1710815

MySQL Learning notes (16) Stored procedures

Related Article

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.