0
I’m starting in Python and database and I have three questions!
For example, inside my database I have a "name" column. Just to illustrate, say I want to take the contents of the "name" column corresponding to id= 1 and play in a Python variable called "client name"?
How do I list the total number of existing records?
If I want to make a button in Python that navigates between records How should it be done? It has something like cursor.next and cursor.Previous, for example?
Thank you very much, guys!
Hello @Fonso.Prog ! Beauty? Face, at the end I got it like this: #move to the last registered record: cursor.execute("SELECT idClient FROM clients ORDER BY idCliente desc limit 1") #plays for a variable in python and removes the quotes and parentheses: codClient = " ". Join(map(str, cursor.fetchone()) #assign to the textfields of the program the value of the stored variable self.ids.tf_codCliente.text = codCliente But thank you very much for the idea, also very good!!
– Gus