def bd_send():
try:
with connection.cursor() as cursor:
send_sql = message.get()
print(cursor.execute(send_sql))
connection.commit()
rows = cursor.fetchall()
for row in rows:
print(row)
text2.insert(0.0,f"{rows}\n")
print("Запрос успешно выполнен")
finally:
print("Выполнено успешно")
text2.insert(0.0,f"{rowS}\n")