Code example for SQLException

Methods: toString

0
                        db.bind_param(1, this.name);
                        db.bind_param(2, this.description);
			db.executeUpdate();
			db.close();
			} catch(SQLException e){	
				Error_Frame.Error(e.toString());
			}  
	} 
	 
	/******************* 
         * update product 
         *********************/ 
	public void updateProduct() { 
		try { 
			Database db = dbconnect();
                         String query = "UPDATE product SET name = ?, "
                                      + "description = ? " 
                                      + "WHERE PID = ?"; 
			db.prepare(query);
                        db.bind_param(1, this.name);
Contextual code suggestions in your IDE  Get Codota for Java