Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

use fetchone() function to find duplicate row.

for name in (['AlixaProDev','Salman']): 
    cursor.execute("SELECT rowid FROM Student WHERE Name = ?", (name,))
    data=cursor.fetchone()
    if data is None:
        print('No Student with The Name: %s'%name)
    else:
        print('One Other Student with %s Name Found  rowid %s'%(name,data[0]))Copy Code
Source by www.alixaprodev.com #
 
PREVIOUS NEXT
Tagged: #function #find #duplicate
ADD COMMENT
Topic
Name
6+9 =