qwe = 0
for value in cursor.execute(f"SELECT Date_msk FROM time_bd WHERE Num_bd = {qwe}"):
print(value)
12345
qwe = 0
while True:
qwe += 1
for value in cursor.execute(f"SELECT Date_msk FROM time_bd WHERE Num_bd = {qwe}"):
print(value)
else:
print("Не работает")
Не работает