logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

MYSQL高级——存储过程(习题)计算两数之和,循环,判断,赋值查询

创建存储过程create procedure 存储名(in 传入参数 int,in b int,out 输出参数 int)begin -- 开始set sum = a+b; -- 执行操作end; -- 结束-- 调用call mypro(传入参数1,传入参数2,输出参数(@参数名));select @参数名;练习- -计算两个数值-- 计算两个数的和create procedure mypro(

文章图片
#mysql
MySQL正则函数

3、REGEXP_LIKEregexp_like()函数用于比较给定的字符串,如果字符串相同则返回 1,否则返回 0。4、REGEXP_SUBSTR用于从给定的字符串中返回子字符串,有就返回子字符串,没有返回null。,regexp_like,regexp_instr,regexp_substr四个函数,

文章图片
#mysql#数据库
application.properties连接数据库 整合mybatis

## 数据源配置spring.datasource.url=jdbc:mysql://localhost:3306/testspring.datasource.username=rootspring.datasource.password=123456spring.datasource.driver-class-name=com.mysql.jdbc.Driver## Mybatis 配置# 实体

#mybatis
到底了