Professional Documents
Culture Documents
Python MySQL Connectivity (Assignment)
Python MySQL Connectivity (Assignment)
host- localhost
user- root
password- ops
database- Employees
1. Write a python connectivity script to display all records from Emp_Details table.
2. Write a python connectivity script to display the records of the employees whose
salary is greater than 50000 from Emp_Details table.
3. Write a python connectivity script to insert a record
(105, Sumit Kumar, M, 7878956213, 45000, Ranchi) into Emp_details table.
4. Write a python connectivity script to delete the record of the employee whose
employee Id is 102.