简体   繁体   中英

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!

我真的建议您看一下SQL的基础知识...

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM