create table spoj2
as
select *
from table1
left join table2 on table1.id = table2.id_new
or table1.id = table2.id_old
它说包装产品数量不存在。我怎么能摆脱这个错误。请帮忙。
答案 0 :(得分:1)
删除“new”因为我建议“productQuantity”是一个现有变量。如果我错了,为什么你的班级以较低的字母开头?
int minusQ = Integer.parseInt(productQuantity.getBalance()) - Integer.parseInt(quant.getText());
OR
int minusQ = Integer.parseInt(new ProductQuantity().getBalance()) - Integer.parseInt(quant.getText());