(Jul-14-2017, 01:06 PM)ichabod801 Wrote: I don't understand. What is this base you are getting execute and fetchall from? Is it meant to read the table?
Note that join is the opposite of split, so on line 6, b is just equal to data[0].
Hi,
yes, this is fetch from table.
I am trying to do this,
base.execute("select num from tbl_a where nama=%s",(arg1)) hsl = base.fetchall() print(hsl)and it returns
Output:(('2,3',), ('2',), ('1',))
I just want to make it 2,3,2,1and then I need the biggest value, in this case it should returns 3..