Answers for "if query empty print python"

0

if query empty print python

# cursor.rowcount will usually be set to 0.

if cursor.rowcount == 0:
  print("No results")
  elif cursor.rowcount > 0:
    for results in result_from_query:
      print(results)
Posted by: Guest on March-30-2021

Python Answers by Framework

Browse Popular Code Answers by Language