Skip to content

add an aggregate function to mysql, to find the most frequently occurring value

Notifications You must be signed in to change notification settings

pjincz/mysql-udf-most

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

mysql-udf-most

add an aggregate function to mysql, to find the most frequently occurring value

Install

make
sudo make install
> CREATE AGGREGATE FUNCTION most RETURNS STRING SONAME 'mysql-udf-most.so';
> CREATE AGGREGATE FUNCTION most_times RETURNS INT SONAME 'mysql-udf-most.so';

Uninstall

sudo make uninstall
> DROP FUNCTION most;
> DROP FUNCTION most_times;

Usage

select most(xxx), most_times(xxx) from xxx;

About

add an aggregate function to mysql, to find the most frequently occurring value

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages