"SELECT * FROM products WHERE product_name = ?";
This is the error message i am getting
String sql = "SELECT * FROM posdb.products WHERE products.product_name = ?";
PreparedStatement ps = myCon.CreateConnection().prepareStatement(sql);
This is the error message I am getting:
You have an error in your sql statement, check the manual that
corresponds to your MariaDB server version for the right
syntax to use near '?' at line 1