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 « Connection »

Méthode sqlalchemy.Connection.execute

Signature de la méthode execute

def execute(self, statement: 'Executable', parameters: 'Optional[_CoreAnyExecuteParams]' = None, *, execution_options: 'Optional[CoreExecuteOptionsParameter]' = None) -> 'CursorResult[Any]' 

Description

help(Connection.execute)

Executes a SQL statement construct and returns a
:class:`_engine.CursorResult`.

:param statement: The statement to be executed.  This is always
 an object that is in both the :class:`_expression.ClauseElement` and
 :class:`_expression.Executable` hierarchies, including:

 * :class:`_expression.Select`
 * :class:`_expression.Insert`, :class:`_expression.Update`,
   :class:`_expression.Delete`
 * :class:`_expression.TextClause` and
   :class:`_expression.TextualSelect`
 * :class:`_schema.DDL` and objects which inherit from
   :class:`_schema.ExecutableDDLElement`

:param parameters: parameters which will be bound into the statement.
 This may be either a dictionary of parameter names to values,
 or a mutable sequence (e.g. a list) of dictionaries.  When a
 list of dictionaries is passed, the underlying statement execution
 will make use of the DBAPI ``cursor.executemany()`` method.
 When a single dictionary is passed, the DBAPI ``cursor.execute()``
 method will be used.

:param execution_options: optional dictionary of execution options,
 which will be associated with the statement execution.  This
 dictionary can provide a subset of the options that are accepted
 by :meth:`_engine.Connection.execution_options`.

:return: a :class:`_engine.Result` object.



Vous êtes un professionnel et vous avez besoin d'une formation ? Sensibilisation à
l'Intelligence Artificielle
Voir le programme détaillé