Python PyMySQL Tutorial 2 : Create Table in MySQL Database

preview_player
Показать описание
Python PyMySQL Tutorial 2 : Create Table in MySQL Database in Ubuntu Linux

First you need to import the PyMySQL Library and then create a connection object using pymysql and pass the authentication arguments as parameters to connect function.
then using the connection object create the cursor object and then write the create table string query and pass it to execute function in cursor object.
Then, Close the Database connection to MySQL database.
Рекомендации по теме
Комментарии
Автор

Hey, based on the instance you have shown in the video, the cursor does not need to close after we exit DB operating?

CapBuggy-zjml
welcome to shbcf.ru