Answer the question
In order to leave comments, you need to log in
Mysql.connector.errors.ProgrammingError: How to solve this problem?
I wrote a function that checks if there is an element in the database by its link
def check_advestisement(self, adv_url):
sql = "SELECT * FROM `2029023685` WHERE Ссылка на объявление=%s"
adr = (adv_url, )
self.adv_cursor.execute(sql, adr)
myr = self.adv_cursor.fetchone()
print(myr)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question