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 ? Deep Learning avec Python
et Keras et Tensorflow
Voir le programme détaillé
Module « sqlalchemy »

Fonction join - module sqlalchemy

Signature de la fonction join

def join(left: '_FromClauseArgument', right: '_FromClauseArgument', onclause: 'Optional[_OnClauseArgument]' = None, isouter: 'bool' = False, full: 'bool' = False) -> 'Join' 

Description

help(sqlalchemy.join)

Produce a :class:`_expression.Join` object, given two
:class:`_expression.FromClause`
expressions.

E.g.::

    j = join(
        user_table, address_table, user_table.c.id == address_table.c.user_id
    )
    stmt = select(user_table).select_from(j)

would emit SQL along the lines of:

.. sourcecode:: sql

    SELECT user.id, user.name FROM user
    JOIN address ON user.id = address.user_id

Similar functionality is available given any
:class:`_expression.FromClause` object (e.g. such as a
:class:`_schema.Table`) using
the :meth:`_expression.FromClause.join` method.

:param left: The left side of the join.

:param right: the right side of the join; this is any
 :class:`_expression.FromClause` object such as a
 :class:`_schema.Table` object, and
 may also be a selectable-compatible object such as an ORM-mapped
 class.

:param onclause: a SQL expression representing the ON clause of the
 join.  If left at ``None``, :meth:`_expression.FromClause.join`
 will attempt to
 join the two tables based on a foreign key relationship.

:param isouter: if True, render a LEFT OUTER JOIN, instead of JOIN.

:param full: if True, render a FULL OUTER JOIN, instead of JOIN.

.. seealso::

    :meth:`_expression.FromClause.join` - method form,
    based on a given left side.

    :class:`_expression.Join` - the type of object produced.



Vous êtes un professionnel et vous avez besoin d'une formation ? RAG (Retrieval-Augmented Generation)
et Fine Tuning d'un LLM
Voir le programme détaillé