My Id is autoIncrement and other than Id from 1st position, I want to insert the name,price – Mysql
This is the code where I'm trying to use the insert query: int insertItems(String name,double amt,String exp)throws Exception{ Connection con=getConnection(); PreparedStatement ps=con.prepareStatement("insert into itemsList (null,name,amt,expire) values (?,?,?,?);");//when I use the 4?s it displays [Exception in thread "main" java.sql.SQLException: No value…