user3353391
user3353391

Reputation: 139

How to check if an entry already exists inside a table (SQL using Python)

I am new to this. I've established a connection to my Oracle database using cx_Oracle. Say that I have a table named "student" with the following infos: "name","age","student_number","adress". Now i'm looking into inserting another row to the table. How do I check if student_number 6 already exist? Thanks in advance!

Upvotes: 0

Views: 435

Answers (1)

bgusach
bgusach

Reputation: 15165

I really recommend you to take a look at the basics of SQL...

SELECT * FROM "student" WHERE "student_number" = 6

Upvotes: 1

Related Questions