Definition of a stored procedureA stored procedure is a lump of declarative SQL statements stored in a database directory.Applications such as java,python,php can call stored procedures.Since the MySQL 5.0 release, stored procedures, stored
PHP calls the MySQL stored procedure and returns the value. PHP calls the MySQL stored procedure and returns the value. This document describes how to call and execute the mysql stored procedure in php and then return the value returned by the
1. Display the list of databasesshow databases; # View all current databasesShow Databases \g #以行的方式显示2. On the command line, execute the SQL statementMysql-e ' show databases '-uroot-p123456mysqlshow-uroot-p123456 # not used, just remember the one
1. What is stored procedure
First, we will introduce the database storageProgramThe database storage program is also known as a storage module-a computer program stored and executed by the database server (with a series of different names ).Source
Stored procedure One, IntroductionThe stored procedure contains a series of executable SQL statements stored in MySQL, which can be executed by calling its name to execute a heap of SQL inside it.Advantages of using Stored procedures:
A stored procedure can execute multiple statements at a time to process complicated business logic and complete some calculations. This blog summarizes the basic usage of mysql stored procedures. We will discuss from two aspects: how to write a
Http://www.cnblogs.com/kkcheng/archive/2010/03/19/1689672.html
Stored procedures, like a programming language, also contain data types, process control, input and output, and its own library of functions.
--------------------Basic Syntax-------------
This article describes in detail how to call and execute the mysql stored procedure in php and then return the value returned by the stored procedure. For more information, see. method of calling the stored procedure. a. If the stored procedure has
Address: http://www.pczpg.com/a/2010/0507/7815.html
Call the MySQL stored procedure in the same thing in PHP and then execute another or multiple commands (or execute multiple stored procedures in the same thing) again ), if you use the query
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.