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é
Classe « UpdateBase »

Méthode sqlalchemy.UpdateBase.with_hint

Signature de la méthode with_hint

def with_hint(self, text: 'str', selectable: 'Optional[_DMLTableArgument]' = None, dialect_name: 'str' = '*') -> 'Self' 

Description

help(UpdateBase.with_hint)

Add a table hint for a single table to this
INSERT/UPDATE/DELETE statement.

.. note::

 :meth:`.UpdateBase.with_hint` currently applies only to
 Microsoft SQL Server.  For MySQL INSERT/UPDATE/DELETE hints, use
 :meth:`.UpdateBase.prefix_with`.

The text of the hint is rendered in the appropriate
location for the database backend in use, relative
to the :class:`_schema.Table` that is the subject of this
statement, or optionally to that of the given
:class:`_schema.Table` passed as the ``selectable`` argument.

The ``dialect_name`` option will limit the rendering of a particular
hint to a particular backend. Such as, to add a hint
that only takes effect for SQL Server::

    mytable.insert().with_hint("WITH (PAGLOCK)", dialect_name="mssql")

:param text: Text of the hint.
:param selectable: optional :class:`_schema.Table` that specifies
 an element of the FROM clause within an UPDATE or DELETE
 to be the subject of the hint - applies only to certain backends.
:param dialect_name: defaults to ``*``, if specified as the name
 of a particular dialect, will apply these hints only when
 that dialect is in use.


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