public static Subcategorias sqlLeer(Subcategorias subcat){
        String sql="SELECT * FROM subcategorias WHERE idsubcategorias = '"+subcat.getId()+"'";
        if(!BD.getInstance().sqlSelect(sql)){
            return null;
        }
        if(!BD.getInstance().sqlFetch()){
            return null;
        }
        
        subcat.setId(BD.getInstance().getInt("idsubcategorias"));
        subcat.setNombre(BD.getInstance().getString("nombre"));        
        return subcat;
    }