3、定义一个过程main
2021/6/5 18:55:04
本文主要是介绍3、定义一个过程main,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!
delimiter $$
drop procedure if exists main;
create procedure main()
begin
declare x varchar(100);
declare xing,ming,xm varchar(3);
declare sex,n int;
declare xh varchar(8);
set xh='19000';
drop table if exists xs1;
create table xs1 as select 学号,姓名,性别 from xs;
delete from xs1;
set x='刘王张赵李钱朱何孙曾陈吴黄郑邓周毛江胡';
set n=1;
while n<21 do
call get_a_character(x,xing);
call get_name(ming,sex);
set xm=concat((select xing),(select ming));
select xm;
insert into xs1 values ((select xh),(select xm),sex);
set xh=xh+1;
set n=n+1;
end while;
end $$
delimiter ;
call main();
select * from xs1;
这篇关于3、定义一个过程main的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!
- 2024-09-30Emotion学习入门指南
- 2024-09-29集成向量数据库与LLM:实战指南
- 2024-09-29变形学习入门指南
- 2024-09-29保持曲线领先的AI代码编辑器
- 2024-09-29封装学习入门教程:掌握面向对象编程的基础
- 2024-09-29大型语言模型(LLM)微调策略
- 2024-09-26AI辅助的软件开发生命周期
- 2024-09-26RAG 框架入门课程(生成式 AI) для 初学者
- 2024-09-26Meet “Jennifer”:GPT-o1 的秘密身份
- 2024-09-26如果你无法战胜他们……那就偷取他们的想法。创建一个更好的算法交易系统