MySQL Forums
Forum List  »  Connector/Python

Re: LEFT JOIN give different result in PhpMyAdmin and Python code
Posted by: Grasp Skills
Date: November 22, 2018 12:36AM

You will need to have Python (including the MySQLdb and sys modules) and MySQL installed. We will also use the same database table (address) from a previous post, Inserting Data into MySQL with Perl.

Fetch a single line:

# fetch a single row using fetchone() method.
row = cursor.fetchone ()

Fetch multiple rows:

# fetch all of the rows from the query
data = cursor.fetchall ()

Options: ReplyQuote


Subject
Written By
Posted
Re: LEFT JOIN give different result in PhpMyAdmin and Python code
November 22, 2018 12:36AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.