执行以下查询时
DELIMITER //
create procedure usp_ItemView(
p_itemname varchar(50),
p_company varchar(50),
p_model varchar(50),
p_unit varchar(50),
p_photo varchar(50),
p_color varchar(50),
p_size varchar(50),
p_weight varchar(50),
p_stock varchar(50),
out p_maxsi int
)
begin
insert into item_tbl(
item_name,company,model_no,unit,photo,
color,size,weight,stock
)
values(
p_itemname,p_company,p_model,p_unit,p_photo,
p_color,p_size,p_weight,p_stock
);
set p_maxsi = (select max(sl_no) from item_tbl);
insert into stock(itemslno,quantity)
values(
p_maxsi,p_stock
);
end //
DELIMITER ;
我收到错误:
1054 - “字段列表”中的未知列'itemslno'