Computer Science
Create a database TESTDB.
Python MySQL
1 Like
Answer
import mysql.connector
conn = mysql.connector.connect(host = 'localhost', user = 'root', passwd = 'tiger')
cursor = conn.cursor()
cursor.execute("CREATE DATABASE TESTDB")
conn.commit()
conn.close()
Answered By
1 Like
Related Questions
Write a program to display all records in ascending order of their salary from table employee.
Write a program to increase salary of the employee, whose name is "MANOJ KUMAR", by 3000.
Write a program to delete the employee record whose name is read from keyboard at execution time.
Create a table EMPLOYEE with Fields FIRST_NAME, LAST_NAME, AGE, GENDER and INCOME.