Write a program to fetch all the value from a table.
import MySQLdb
db=MySQLdb.connect(‘localhost’,’pardeep’,’pardeep321′,’temp’)
curs=db.cursor()
print ‘input the name for search : ‘
sql = (“select * from employee”)
curs.execute(sql)
fet = curs.fetchall()
for row in fet:
print row