Participer au site avec un Tip
Rechercher
 

Améliorations / Corrections

Vous avez des améliorations (ou des corrections) à proposer pour ce document : je vous remerçie par avance de m'en faire part, cela m'aide à améliorer le site.

Emplacement :

Description des améliorations :

Vous êtes un professionnel et vous avez besoin d'une formation ? Programmation Python
Les fondamentaux
Voir le programme détaillé
Classe « Select »

Méthode sqlalchemy.Select.add_columns

Signature de la méthode add_columns

def add_columns(self, *entities: '_ColumnsClauseArgument[Any]') -> 'Select[Any]' 

Description

help(Select.add_columns)

Return a new :func:`_expression.select` construct with
the given entities appended to its columns clause.

E.g.::

    my_select = my_select.add_columns(table.c.new_column)

The original expressions in the columns clause remain in place.
To replace the original expressions with new ones, see the method
:meth:`_expression.Select.with_only_columns`.

:param \*entities: column, table, or other entity expressions to be
 added to the columns clause

.. seealso::

    :meth:`_expression.Select.with_only_columns` - replaces existing
    expressions rather than appending.

    :ref:`orm_queryguide_select_multiple_entities` - ORM-centric
    example



Vous êtes un professionnel et vous avez besoin d'une formation ? Machine Learning
avec Scikit-Learn
Voir le programme détaillé