MCQs>IT & Programming>Java>Choose the right syntax for a preparedStatement using ? as a placeholder for values namely CUSTOMER_ID,PRICE to be substituted while inserting values in the table ORDER: PreparedStatement ps=con.prepareStatement('INSERT INTO ORDER (CUSTOMER_ID ,PRICE) VALUES(?,?)');
Java MCQs
Choose the right syntax for a preparedStatement using ? as a placeholder for values namely CUSTOMER_ID,PRICE to be substituted while inserting values in the table ORDER:
PreparedStatement ps=con.prepareStatement("INSERT INTO ORDER (CUSTOMER_ID ,PRICE) VALUES(?,?)");