python for mysql pratice
------When a connection or operational request is received by connections.Connection(),
it is processed and passed to _mysql and subsequently to the MySQL API in C
to perform it.
To handle this interface, _mysql uses two classes:
connectionresult
The frst is used to establish communication with MySQL and thus returns a
connection object. The second, as the name implies, returns a set containing the
results from a MySQL command that a program sends. These results can be either
the query results or an error. _mysql naturally passes the error to the calling process.
In the case of MySQLdb, we then have a comprehensive toolbox to handle the errors
that may arise.
posted on 2020-10-13 12:11 fRe_Bourne 阅读(68) 评论(0) 收藏 举报
浙公网安备 33010602011771号