DELIMITER $
CREATE PROCEDURE sp_addorder(in goodsid int, in quantity int)
BEGIN
	declare pr double;
	select price into pr from goods where id=_________;
	insert into ________(gid,quantity) values (goodsid, quantity);
	update orders set total= ___________ where gid =goodsid;
END $
DELIMITER ;
