Home Database Mysql Tutorial mysql生成完整的存储过程定义语句_MySQL

mysql生成完整的存储过程定义语句_MySQL

Jun 01, 2016 pm 01:03 PM
statement process

 

SELECT   CONCAT('PR_', p.db,'.',p.name ) FileName ,
CONCAT(
'
DELIMI','TER $$

USE `',p.db,'`$$

DROP PROCEDURE IF EXISTS `',p.name, '`$$

CREATE DEFINER=','`',
LEFT(DEFINER, -1+LOCATE('@',DEFINER)),
'`@`',
RIGHT(DEFINER,LENGTH(DEFINER)-LOCATE('@',DEFINER)),
'`'
,' PROCEDURE `',p.name ,'`(',p.param_list,')
',p.body_utf8,
'$$

DELIMI','TER ;
' ) AS sql_create 
FROM mysql.proc AS p 
WHERE p.db LIKE '%'
AND TYPE LIKE 'PROC%'
ORDER BY p.db,p.name ;
Copy after login

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Back to the Future How to spend 19996-24 Back to the Future How to spend 19996-24 Mar 02, 2024 pm 12:58 PM

In Back to the Future 1999, players will face many level challenges, and each level brings completely different challenges. As one of the levels, 6-24 will definitely have many players thinking about it. You know how to challenge this level, so the following will also bring relevant clearance methods. Back to the Future 19996-24 Clearance Method 1. After burning on level 30 in one sentence, wait for the boss to be stunned and give him a heavy beating. 2. Prioritize using main C and 142d to burn in one round. 3. In the second round, use the auxiliary and nanny's small skills to burn and the main C card to build a big move. 4. The boss will be stunned in three rounds, and then he will be beaten directly with his ultimate move and damage skills.

How to beat Difficulty 3 of Mingtide Fantasyland How to beat Difficulty 3 of Mingtide Fantasyland Feb 28, 2024 pm 10:19 PM

Share how to pass the level of Ming Tide Fantasyland Difficulty 3. Many people in Mingchao are completing level 3 of this fantasyland. This level is actually a bit difficult. Many friends don’t know what to do yet, but don’t worry, the editor brings it to you. If you have read the strategies in it, come and give it a try. How to pass the Bell Turtle character in Difficulty Level 3? Strengthening resonance skills can improve the effect of our aerodynamics. In this way, the attack efficiency will be increased and the damage will be greater. However, if you have Effect replacement can also be exchanged. [Metaphor] Choice for the first three levels: Sun in the Forest: It can greatly increase the damage of Jiyan. If the skill is used more often, it can produce a very good critical hit effect. Protective device: Use resonance technology

multi-catch statement in PHP8.0 multi-catch statement in PHP8.0 May 14, 2023 pm 01:51 PM

With the development of web applications, PHP language has been widely used in web development. In the PHP8.0 version, a new language feature was introduced - the multi-catch statement. What is a multi-catch statement? In previous PHP versions, developers needed to write multiple catch statements to handle multiple exception types. For example, the following code block shows the handling of two different exceptions: try{//Somecodethatmay

How to implement the statement of inserting data in MySQL? How to implement the statement of inserting data in MySQL? Nov 08, 2023 am 11:48 AM

How to implement the statement of inserting data in MySQL? When using a MySQL database, inserting data is a very basic and common operation. By inserting data, new records can be added to database tables to provide support for business operations. This article will introduce how to use the INSERT statement in MySQL to implement data insertion operations, and provide specific code examples. The INSERT statement in MySQL is used to insert new records into the database table. Its basic syntax format is as follows: INSERTINTOt

To understand flow control statements in Python, you need to master several situations To understand flow control statements in Python, you need to master several situations Jan 20, 2024 am 08:06 AM

Python is a widely used high-level programming language. It is easy to learn, efficient and flexible, and is deeply loved by developers. In Python, flow control statements are an important part of implementing program logic. This article will introduce commonly used flow control statements in Python and provide code examples to deepen understanding. In Python, common flow control statements include conditional statements and loop statements. Conditional statements execute different code blocks based on the true or false condition and are used to determine and select execution branches. The loop statement is used to repeat

Master the types of Python flow control statements and learn from scratch! Master the types of Python flow control statements and learn from scratch! Jan 20, 2024 am 09:02 AM

To learn Python from scratch, first understand the types of flow control statements! Python is a simple and powerful programming language that is widely used in data analysis, artificial intelligence, network development and various scientific computing fields. As a beginner, it is very important to master basic flow control statements, because they are the basis for realizing logical judgment and controlling the program execution flow. In Python, there are three main types of flow control statements: sequential structures, conditional structures and loop structures. The following will introduce these three process control statements in detail and give the corresponding

C# try statement usage C# try statement usage Feb 22, 2024 pm 12:45 PM

The usage of try statement in C# requires specific code examples. C# is an object-oriented programming language, in which the try statement is a structure used to capture and handle exceptions. Through the try statement, we can write code to handle exceptions that may occur, thereby improving the stability and reliability of the program. In this article, we will introduce the usage of try statement in C# and provide some specific code examples to help readers understand. In C#, the try statement consists of try block, catch block and optionalfina

Explain the process of selection sorting in C language Explain the process of selection sorting in C language Sep 01, 2023 pm 01:57 PM

Selection sort is an aggressive algorithm used to find the smallest number from an array and place it in the first position. The next array to be traversed will start at the index, close to where the smallest number is placed. The process of selection sort selects the first smallest element in the list of elements and places it in the first position. Repeat the same operation for the remaining elements in the list until all elements are sorted. Consider the following list - first pass Sm=a[0]=30Sma[1]

See all articles