Jun-13-2018, 08:41 PM
Hi i have a table with two columns, A & B. In A column there are Names and in column B there are grades, where as one Name may be related to many grades i.e
A|B
T1|1
T1|3
T1|5
T2|1
T3|4
In my select query to the oracle table, according to column A, if the "where clause" refers to name=T1, the results will be:
T1,1
T1,3
T1,5
I want to insert these results to six textboxes (using tkinker):
NameBox:T1 GradeBox:1
NameBox:T1 GradeBox:3
NameBox:T1 GradeBox:5
After fetchall() i dont know how to match the above results and insert them into the boxes. If the Name-Grade was one table row, there would be no problem.For example, i could directly link textboxes textvariables=column A value and column B value respectively.
When the rows>1, i dont know how to handle it. I must insert the fetchall results into lists ? and then how i relate lists' elements to each textbox?
A|B
T1|1
T1|3
T1|5
T2|1
T3|4
In my select query to the oracle table, according to column A, if the "where clause" refers to name=T1, the results will be:
T1,1
T1,3
T1,5
I want to insert these results to six textboxes (using tkinker):
NameBox:T1 GradeBox:1
NameBox:T1 GradeBox:3
NameBox:T1 GradeBox:5
After fetchall() i dont know how to match the above results and insert them into the boxes. If the Name-Grade was one table row, there would be no problem.For example, i could directly link textboxes textvariables=column A value and column B value respectively.
When the rows>1, i dont know how to handle it. I must insert the fetchall results into lists ? and then how i relate lists' elements to each textbox?