【文件属性】:
文件名称:mysql_udf_bundle:MySQL UDF的随机集合
文件大小:5KB
文件格式:ZIP
更新时间:2021-05-15 21:22:17
C++
mysql_udf_bundle
MySQL UDF的随机集合
要安装(假设使用Ubuntu等):
apt-get install libmysqlclient-dev g++
cmake
make
sudo make install
在MySQL中以root身份:
create function earth_distance returns real soname 'libearth_distance.so';
create function write_to_file returns int soname 'libwrite_to_file.so';
create function hello returns string soname 'libhello.so';
create function word_count returns int soname 'libword_
【文件预览】:
mysql_udf_bundle-master
----CMakeLists.txt(363B)
----README.md(2KB)
----earth_distance.cc(2KB)
----hello.cc(570B)
----write_to_file.cc(2KB)
----word_count.cc(984B)
----longest_word.cc(3KB)