摘要: 创建存储过程CREATE PROCEDURE productpricing(OUT pl DECIMAL(8,2),OUT ph DECIMAL(8,2),OUT pa DECIMAL(8,2))BEGIN SELECT Min(prod_price) INTO pl FROM products; SELECT Max(prod_price) INTO ph FROM products; SELECT Avg(prod_price) INTO pa FROM products;END;执行存储过程CALL productpricing(@pricelow,@pricehigh,@priceav 阅读全文
posted @ 2013-02-28 18:07 TBHacker 阅读(388) 评论(0) 推荐(0) 编辑