当前位置:网站首页>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

边栏推荐
- Target detection - pytorch uses mobilenet series (V1, V2, V3) to build yolov4 target detection platform
- 自动化测试框架有什么作用?上海专业第三方软件测试公司安利
- 游戏解包的危害及资源加密的重要性
- 【MySQL】锁
- LDAP application (4) Jenkins access
- MySQL learning records 12jdbc operation transactions
- The mysqlbinlog command uses
- Beijing invitation media
- Pointer advanced --- pointer array, array pointer
- Computer cleaning, deleted system files
猜你喜欢

Chrome浏览器的crash问题

JVM performance tuning and practical basic theory - Part 1

PC easy to use essential software (used)

Computer cleaning, deleted system files

生成器参数传入参数

Mobile phones and computers on the same LAN access each other, IIS settings

2022 Inner Mongolia latest water conservancy and hydropower construction safety officer simulation examination questions and answers

【MySQL】日志

同一局域网的手机和电脑相互访问,IIS设置

企微服务商平台收费接口对接教程
随机推荐
Leetcode question brushing (5.28) hash table
如何有效地进行自动化测试?
可变长参数
Chrome浏览器的crash问题
Image,cv2读取图片的numpy数组的转换和尺寸resize变化
Introduction to the differences between compiler options of GCC dynamic library FPIC and FPIC
Warning in install. packages : package ‘RGtk2’ is not available for this version of R
Sort according to a number in a string in a column of CSV file
ROS compilation calls the third-party dynamic library (xxx.so)
win10系统中的截图,win+prtSc保存位置
游戏解包的危害及资源加密的重要性
View computer devices in LAN
自动化测试框架有什么作用?上海专业第三方软件测试公司安利
Deep analysis of C language pointer
被破解毁掉的国产游戏之光
Rviz仿真时遇到机器人瞬间回到世界坐标原点的问题及可能原因
Research Report on supply and demand and development prospects of China's high purity aluminum market (2022 Edition)
Fairguard game reinforcement: under the upsurge of game going to sea, game security is facing new challenges
logback1.3. X configuration details and Practice
Process of obtaining the electronic version of academic qualifications of xuexin.com