或者有没有办法在另一个表中自动生成外键,即规范化表?
createConnection();
stmt = conn.createStatement();
stmt.execute("insert into PRODUCTS(PRODUCTNAME, PURCHASEPRICE, RETAILPRICE, QUANTITY) values ( '"+product.getProductName()+"',"+product.getPurchasePrice()+","+product.getRetailPrice()+","+product.getQuantity()+")");
stmt.close();
shutdown();