|
my_bool | median_init (UDF_INIT *initid, UDF_ARGS *args, char *message) |
| Called before first usage of function. More...
|
|
void | median_reset (UDF_INIT *initid, UDF_ARGS *args, char *is_null, char *error) |
| Reset function and add first group member Calls clear and add. More...
|
|
void | median_clear (UDF_INIT *initid, char *is_null, char *error) |
| Called at start of group. More...
|
|
void | median_add (UDF_INIT *initid, UDF_ARGS *args, char *is_null, char *error) |
| Add a member of the group. More...
|
|
double | median (UDF_INIT *initid, UDF_ARGS *args, char *is_null, char *error) |
| Retrieve median. Called at end of group. More...
|
|
void | median_deinit (UDF_INIT *initid) |
| Called after last access to function. More...
|
|
Median.
CREATE AGGREGATE FUNCTION median RETURNS REAL SONAME 'libsqlstat.so';
SELECT median(x) FROM mytab;
DROP FUNCTION median;
Definition in file median.cc.