Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
161 views
in Technique[技术] by (71.8m points)

MySQL,关于存储过程的

?create?procedure?p
?????(in?v_a?int?,in?v_b?int?,out?v_c?int)
?????begin
?????if?v_a>v_b?then
?????v_a?into?v_c;
?????else
??v_b?into?v_c;
?????end?if;
?????end;
?????//

请问这个存储过程为什么错了,没有一点头绪,就是取出最大值,另外如果一个参数既做输出又做输入该怎么定义呢?
?create?procedure?p
?????(in?v_a?int?,in?v_b?int?,out?v_c?int?,in?out?v_d)
这样可以吗??


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

into 语法问题,SELECT XXX INTO xxx;


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...