The cursor objects currently support two function methods: max() and min() as described below.
field, table[,where=None]) |
field, table[,where=None]) |
For example consider the table below:
# Numbers +--------+ | Number | +--------+ | 1 | +--------+ | 2 | +--------+ | 3 | +--------+
>>> cursor.max('Number', 'Numbers') 3 >>> cursor.min('Number', 'Numbers') 1 >>> cursor.max('Number', 'Numbers', where="Number<3") 2
See About this document... for information on suggesting changes.