15 solutions available
Question 10Which command is used for cleaning up the environment?my.closed()is.end()con.quit()mycon.close()
Question 1Explain the following 'results' retrieval methods with examples.(a) fetchone()(b) rowcount(c) fetchall()
Question 2What is the significance of connecting Python with MySQL?
Question 3Why do we use connect() function?
Question 4Explain the steps for establishing MySQL connection with Python.
Question 5Explain the transaction keywords used with MySQL-Python connectivity.
Question 6Give the significance of using execute() function.
Question 7Differentiate between commit() and rollback() statements.
Question 11Write a program to display all records in ascending order of their salary from table employee.
Question 12Write a program to increase salary of the employee, whose name is "MANOJ KUMAR", by 3000.
Question 13Write a program to delete the employee record whose name is read from keyboard at execution time.
Question 14Create a database TESTDB.
Question 15Create a table EMPLOYEE with Fields FIRST_NAME, LAST_NAME, AGE, GENDER and INCOME.
Question 8fetchone() fetches the next row of a query result set.
Question 9DB-API is the standard for Python's database interface.