The DQL Syntax to update row in MySQL was
UPDATE table_name SET column1=value, column2=value2 WHERE some_column=some_valu...
Linux users we provide solutions to different Problems we face every Day. This is Linux Troubleshoot Site, developed by Linux users.
Tuesday, 19 February 2013
Python read all rows of MySQL table
Below python code print all first column values of table in MySQL
query="SELECT * from table_name"
cursor.execute(query)
row = cursor.fetchone()
while row is not None:
print(row[1])
row = cursor.fetchone(...
Subscribe to:
Posts (Atom)
Here We Write The Problems we face at different situations and Solutions to those problems.