当前位置:网站首页>MySQL stored procedure function
MySQL stored procedure function
2022-07-27 01:53:00 【Palm nine】
Field name data type Primary key Foreign keys Non empty only Self increasing
id INT yes no yes yes no
name VARCHAR(50) no no yes no no
glass VARCHAR(50) no no yes no no
sch Table content
id name glass
1 xiaommg glass 1
2 xiaojun glass 2
1、 Create a storage function that can count the number of records in the table , The function is called count_sch()



2、 Create a stored procedure avg_sai, Yes 3 Parameters , Namely deptno,job, Receive average salary , Function query emp surface dept by 30,job For the average salary of salesperson .( pre-use emp surface )




边栏推荐
猜你喜欢
随机推荐
DNS
Vector容器的底层实现
shell循环语句
Excel changes the format of scientific counting method into text
FTP service
[cann training camp] enter media data processing (Part 2)
Create a daemon
33 three swordsman awk
Makefile
C language foundation Gobang, very easy to understand, detailed explanation, easy to use
27shell conditional statement
Shell (7) case statement
MySQL单表查询练习
使用ECS和OSS搭建个人网盘
Web server (01) -- Introduction to web server
Summary and review of key points of digital image processing
29shell函数
23NFS共享存储服务
信息获取技术复习
25PXE高效批量网络装机








