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 ? Coder avec une
Intelligence Artificielle
Voir le programme détaillé
Classe « MySQLConnection »

Méthode mysql.connector.MySQLConnection.cmd_stmt_send_long_data

Signature de la méthode cmd_stmt_send_long_data

def cmd_stmt_send_long_data(self, statement_id: 'int', param_id: 'int', data: 'BinaryIO', **kwargs: 'Any') -> 'int' 

Description

help(MySQLConnection.cmd_stmt_send_long_data)

Send data for a column

This methods send data for a column (for example BLOB) for statement
identified by statement_id. The param_id indicate which parameter
the data belongs too.
The data argument should be a file-like object.

Since MySQL does not send anything back, no error is raised. When
the MySQL server is not reachable, an OperationalError is raised.

cmd_stmt_send_long_data should be called before cmd_stmt_execute.

The total bytes send is returned.

Returns int.


Vous êtes un professionnel et vous avez besoin d'une formation ? Programmation Python
Les compléments
Voir le programme détaillé