sdsdsd
2024-10-18 17:58:08
create PROCEDURE b2(in c_year int,in co int)
begin
declare num int;
if exists(select * from class where class="c_year") then
update class set code=code+1 where class="c_year";
else
insert into class(class,code)values(c_year,1);
end if;
select code into num from class where class="c_year";
select CONCAT(c_year,'0',co,lpad(num,3,0)) as code_a;
end;
最新文章
- pyqt4:在线程Qthread中使用定时器Qtimer
- oracle数据库如何创建表空间,临时表空间
- javascript最容易混淆的作用域、提升、闭包
- Markov Random Fields
- 怎么清除SVN密码,以及重置eclipse中svn插件密码
- android项目 之 记事本(6)----- 加入手写
- 在tornado中使用celery实现异步任务处理之中的一个
- ASP.NET Core 2.0 使用支付宝PC网站支付
- (转)举例讲解JAVA中的堆和栈
- 华为机试题【10】-求数字基root
- show()封装没有想象中那么简单
- postman Could not get any response。
- 33.Odoo产品分析 (四) – 工具板块(4) – 问题追踪及群发邮件营销(1)
- js积累点
- Ubuntu安装UFW防火墙
- Linux下开发python django程序(django数据库多对多关系)
- ubuntu 开机自动挂在windows下的分区
- Rancher的安装配置
- 自动删除 Elasticsearch 索引
- SOE不能进入断点调试
热门文章
- Code Forces 1030E
- Python中字符串有哪些常用操作?纯干货超详细
- Rust之路(0)
- 机器学习:集成学习:随机森林.GBDT
- python 使用pyinstaller打包程序
- 基于python常用排序与查找
- Python 面向对象(1): 类方法基础
- spring boot:spring security用mysql实现动态权限管理(spring boot 2.3.3)
- List<;String>;转换为实体类的属性【转】
- flutter——android报错建议Suggestion: add &#39;tools:replace=";android:label";&#39;