标签: mysql stored-procedures
如何在mysql中编写程序,用IN和OUT参数从特定表中选择记录?
答案 0 :(得分:3)
delimiter // create procedure sample (in id int, out MyCount int) begin select count(*) into MyCount from YourTable where YourKey = id; end//