How to check existing data in bd?

0

I need to check if a data already exists in the DB before registering it in python, where bd has the table VideoCapture and its attributes are id, name, value .... need to verify the name before registering in bd in python ...

    
asked by anonymous 10.06.2018 / 18:34

1 answer

0

Just do a SELECT with the data you need to check if it exists in this table. If SELECT does not return data it is because the record does not exist otherwise the record exists.

    
10.06.2018 / 18:50