当前位置:网站首页>Navicat premium create MySQL create stored procedure
Navicat premium create MySQL create stored procedure
2022-07-06 08:42:00 【Rookie post station 2020】
MySQL Stored procedures are SQL Collection of statements , For example, sometimes we may need a large string of SQL sentence , Or writing SQL You need to set the values of some variables during the statement , At this time, it is absolutely necessary to write a stored procedure .
Writing stored procedures is not an easy task , But using stored procedures can simplify operations , Steps to reduce redundancy , meanwhile , It can also reduce mistakes in the process of operation , Increase of efficiency , Therefore, you should learn to use stored procedures as much as possible .
Use Navicat Premium Tools create stored procedures , New query , Input statement , Finally, click 【 function 】

# If there is a stored procedure with the same name, delete
DROP PROCEDURE IF EXISTS my_test2;
# Create stored procedure , Define names and variables .** The variable name is different from the field name , Sometimes there are inexplicable problems **
CREATE PROCEDURE my_test2(in usern VARCHAR(20),in nick VARCHAR(20))
BEGIN
SELECT * FROM sys_user where username = usern and nickname = nick;
END
Calling stored procedure

边栏推荐
- FairGuard游戏加固:游戏出海热潮下,游戏安全面临新挑战
- MySQL learning record 07 index (simple understanding)
- 自动化测试框架有什么作用?上海专业第三方软件测试公司安利
- Verrouillage [MySQL]
- vb.net 随窗口改变,缩放控件大小以及保持相对位置
- Pointer advanced --- pointer array, array pointer
- Deep analysis of C language pointer
- Sort according to a number in a string in a column of CSV file
- JVM performance tuning and practical basic theory - Part 1
- Leetcode question brushing (5.31) string
猜你喜欢

Deep anatomy of C language -- C language keywords

win10系统中的截图,win+prtSc保存位置

PLT in Matplotlib tight_ layout()

View computer devices in LAN

JVM performance tuning and practical basic theory - Part 1

Sublime text in CONDA environment plt Show cannot pop up the problem of displaying pictures

Visual implementation and inspection of visdom

Tcp/ip protocol

Fairguard game reinforcement: under the upsurge of game going to sea, game security is facing new challenges

目标检测——Pytorch 利用mobilenet系列(v1,v2,v3)搭建yolov4目标检测平台
随机推荐
PLT in Matplotlib tight_ layout()
IOT -- interpreting the four tier architecture of the Internet of things
Analysis of the source code of cocos2d-x for mobile game security (mobile game reverse and protection)
Leetcode question brushing (5.31) string
Introduction to the differences between compiler options of GCC dynamic library FPIC and FPIC
Current situation and trend of character animation
egg. JS project deployment online server
China dihydrolaurenol market forecast and investment strategy report (2022 Edition)
查看局域网中电脑设备
2022 Inner Mongolia latest water conservancy and hydropower construction safety officer simulation examination questions and answers
2022 Inner Mongolia latest construction tower crane (construction special operation) simulation examination question bank and answers
JVM performance tuning and practical basic theory - Part 1
UnsupportedOperationException异常
Research Report on Market Research and investment strategy of microcrystalline graphite materials in China (2022 Edition)
CISP-PTE实操练习讲解
Charging interface docking tutorial of enterprise and micro service provider platform
LDAP應用篇(4)Jenkins接入
Shift Operators
【MySQL】锁
LDAP application (4) Jenkins access