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é
Module « sqlalchemy »

Fonction select - module sqlalchemy

Signature de la fonction select

def select(*entities: '_ColumnsClauseArgument[Any]', **__kw: 'Any') -> 'Select[Any]' 

Description

help(sqlalchemy.select)

Construct a new :class:`_expression.Select`.


.. versionadded:: 1.4 - The :func:`_sql.select` function now accepts
   column arguments positionally.   The top-level :func:`_sql.select`
   function will automatically use the 1.x or 2.x style API based on
   the incoming arguments; using :func:`_sql.select` from the
   ``sqlalchemy.future`` module will enforce that only the 2.x style
   constructor is used.

Similar functionality is also available via the
:meth:`_expression.FromClause.select` method on any
:class:`_expression.FromClause`.

.. seealso::

    :ref:`tutorial_selecting_data` - in the :ref:`unified_tutorial`

:param \*entities:
  Entities to SELECT from.  For Core usage, this is typically a series
  of :class:`_expression.ColumnElement` and / or
  :class:`_expression.FromClause`
  objects which will form the columns clause of the resulting
  statement.   For those objects that are instances of
  :class:`_expression.FromClause` (typically :class:`_schema.Table`
  or :class:`_expression.Alias`
  objects), the :attr:`_expression.FromClause.c`
  collection is extracted
  to form a collection of :class:`_expression.ColumnElement` objects.

  This parameter will also accept :class:`_expression.TextClause`
  constructs as
  given, as well as ORM-mapped classes.



Vous êtes un professionnel et vous avez besoin d'une formation ? Calcul scientifique
avec Python
Voir le programme détaillé