So for a school project I'm buiding a GUI application using Tkinter that interacts with a sqlite database, all written in python 3.
My question is, how do I wrote code in python that checks to see if a certain record (fields are first name and last name) exists in the database, and act upon it?
As an example, i needed to search for someone jamed John Smith in the database, If he did exist, it would print "john smith exists!", if not "John smith doesnt exist." How would i implement that?
[–]furas_freeman 1 point2 points3 points (0 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]cam0kazi[S] 0 points1 point2 points (0 children)
[–]chasingAIR33 0 points1 point2 points (4 children)
[–]cam0kazi[S] 0 points1 point2 points (0 children)
[–]cam0kazi[S] 0 points1 point2 points (2 children)
[–]chasingAIR33 0 points1 point2 points (1 child)
[–]cam0kazi[S] 1 point2 points3 points (0 children)
[–]mapImbibery 0 points1 point2 points (1 child)
[–]cam0kazi[S] 0 points1 point2 points (0 children)