I'm using sqlite3 in Python.
My table :
cursor.execute("""create table student(rno int, name char(20), grade char, gender char, avg decimal(5,2), dob date);""")
Where cursor is the name of my cursor object ...
I've used cursor.description to display the column names. But there are seven strings in each tuple in which six are None
print(cursor.description)
Output : (('rno', None, None, None, None, None, None), ('name', None, None, None, None, None, None), ('grade', None, None, None, None, None, None), ('gender', None, None, None, None, None, None), ('avg', None, None, None, None, None, None), ('dob', None, None, None, None, None, None))
From API, it is clear that first two elements of each tuple is must. But it's not for me. Why?
Also what changes shall I make in my table to get the values for the other elements which are set as None???
Any relavant help is appreciated....