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 ? Sensibilisation à
l'Intelligence Artificielle
Voir le programme détaillé
Classe « GenerativeSelect »

Méthode sqlalchemy.GenerativeSelect.order_by

Signature de la méthode order_by

def order_by(self, _GenerativeSelect__first: 'Union[Literal[None, _NoArg.NO_ARG], _ColumnExpressionOrStrLabelArgument[Any]]' = _NoArg.NO_ARG, *clauses: '_ColumnExpressionOrStrLabelArgument[Any]') -> 'Self' 

Description

help(GenerativeSelect.order_by)

Return a new selectable with the given list of ORDER BY
criteria applied.

e.g.::

    stmt = select(table).order_by(table.c.id, table.c.name)

Calling this method multiple times is equivalent to calling it once
with all the clauses concatenated. All existing ORDER BY criteria may
be cancelled by passing ``None`` by itself.  New ORDER BY criteria may
then be added by invoking :meth:`_orm.Query.order_by` again, e.g.::

    # will erase all ORDER BY and ORDER BY new_col alone
    stmt = stmt.order_by(None).order_by(new_col)

:param \*clauses: a series of :class:`_expression.ColumnElement`
 constructs
 which will be used to generate an ORDER BY clause.

.. seealso::

    :ref:`tutorial_order_by` - in the :ref:`unified_tutorial`

    :ref:`tutorial_order_by_label` - in the :ref:`unified_tutorial`



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