Basic Content of MySQL 5.0

Source: Internet
Author: User

The following content mainly introduces the basic content of MySQL 5.0. at the same time, this article also lists the actual application code in MySQL 5.0. I hope you will understand the actual content of MySQL 5.0 after browsing. The following is the detailed description of the article.

 
 
  1. CREATE PROCEDURE 

Create a table stored in the MySQL5.0 database.

 
 
  1. CREATE FUNCTION 

Create a user-defined function, especially the stored procedure of the returned data.

 
 
  1. ALTER PROCEDURE 

Change the pre-specified stored PROCEDURE created with create procedure without affecting the stored PROCEDURE or function ..

 
 
  1. ALTER FUNCTION 

Change the pre-specified stored procedure created using the create function without affecting the stored procedure or FUNCTION ..

 
 
  1. DROP PROCEDURE 

Delete one or more stored procedures from the MySQL 5.0 table.

 
 
  1. DROP FUNCTION 

Delete one or more storage functions from the MySQL table.

 
 
  1. SHOW CREATE PROCEDURE 

Returns the text of a pre-specified stored PROCEDURE created using create procedure. This statement is an SQL: 2003 Standard MySQL extension.

 
 
  1. SHOW CREATE FUNCTION 

Returns the pre-specified Stored Procedure text created using the create function. This statement is an SQL: 2003 Standard MySQL 5.0 extension.

 
 
  1. SHOW PROCEDURE STATUS 

Returns the features of a pre-specified stored procedure, including the name, type, creator, creation date, and change date. This statement is an SQL: 2003 Standard MySQL extension.

 
 
  1. SHOW FUNCTION STATUS 

Returns the features of a pre-specified storage function, including name, type, creator, creation date, and change date. This statement is an SQL: 2003 Standard MySQL extension.

 
 
  1. CALL 

Call a pre-specified stored PROCEDURE created using create procedure.

 
 
  1. BEGIN ... END 

Contains multiple declarations executed by a group.

 
 
  1. DECLARE 

It is used to specify local variables, environments, processors, and pointers.

 
 
  1. SET 

Used to change the value of local and global server variables.

 
 
  1. SELECT ... INTO 

Used to store the column of the DISPLAY variable.

 
 
  1. OPEN 

Used to open a pointer.

 
 
  1. FETCH 

Use a specific pointer to obtain the next column.

CLOSE

Used to close and open pointers.

IF

An if-then-else-end if statement.

CASE... WHEN

Structure of a case statement

LOOP

A simple loop structure; you can use the LEAVE statement to exit.

LEAVE

Used to exit the IF, CASE, LOOP, REPEAT, and WHILE statements.

ITERATE

Used to re-start the loop.

REPEAT

The test cycle at the end.

WHILE

Testing cycle at the beginning.

RETURNS

Returns the value of a stored procedure.

MySQL5.0 supports stored procedure statements.

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.