A
A
Artyom2018-04-18 18:32:04
MySQL
Artyom, 2018-04-18 18:32:04

Python + MySQL + tkinter: how to find out if an entry exists?

I want to know if there is an entry in a MySQL table that has the value of the login parameter equal to the variable mylogin. The problem for me was that if there is no entry with the login=mylogin parameter, an exception is thrown, which for some reason cannot be caught using try-except. How to check if a required entry exists without using try-except?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dimonchik, 2018-04-18
@TheProgrammer256

and why select where and len result is not suitable?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question