The cursor objects currently support two function methods: max(), min() and count() as described below.
table, column [,where=None][,values=[]]) |
?
parameters in the where clause.
table, column [,where=None][,values=[]]) |
?
parameters in the where clause.
table, column [,where=None][,values=[]]) |
?
parameters in the where clause.
For example consider the table below:
# Numbers +--------+ | Number | +--------+ | 1 | +--------+ | 2 | +--------+ | 3 | +--------+
>>> cursor.max(table='Numbers', column='Number') 3 >>> cursor.min(table='Numbers', column='Number') 1 >>> cursor.max(table='Numbers', column='Number', where="Number<?", values=[3]) 2