running mysql queries using python and data display in tabular format code example Example: python retrieves records after db select query cursor.fetchall()