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 ? Calcul scientifique
avec Python
Voir le programme détaillé
Classe « HasPrefixes »

Méthode sqlalchemy.HasPrefixes.prefix_with

Signature de la méthode prefix_with

def prefix_with(self, *prefixes: '_TextCoercedExpressionArgument[Any]', dialect: 'str' = '*') -> 'Self' 

Description

help(HasPrefixes.prefix_with)

Add one or more expressions following the statement keyword, i.e.
SELECT, INSERT, UPDATE, or DELETE. Generative.

This is used to support backend-specific prefix keywords such as those
provided by MySQL.

E.g.::

    stmt = table.insert().prefix_with("LOW_PRIORITY", dialect="mysql")

    # MySQL 5.7 optimizer hints
    stmt = select(table).prefix_with("/*+ BKA(t1) */", dialect="mysql")

Multiple prefixes can be specified by multiple calls
to :meth:`_expression.HasPrefixes.prefix_with`.

:param \*prefixes: textual or :class:`_expression.ClauseElement`
 construct which
 will be rendered following the INSERT, UPDATE, or DELETE
 keyword.
:param dialect: optional string dialect name which will
 limit rendering of this prefix to only that dialect.


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