Documentation Home
MySQL Connector/Python Developer Guide
Related Documentation Download this Manual
PDF (US Ltr) - 0.6Mb
PDF (A4) - 0.6Mb
HTML Download (TGZ) - 83.7Kb
HTML Download (Zip) - 99.4Kb


MySQL Connector/Python Developer Guide  /  Connector/Python C Extension API Reference  /  _mysql_connector.MySQL.select_db() Method

11.38 _mysql_connector.MySQL.select_db() Method

Syntax:

ccnx.select_db(db_name)

Sets the default (current) database for the current session.

Raises a MySQLInterfaceError exception for any MySQL error returned by the MySQL server.


User Comments
Sign Up Login You must be logged in to post a comment.