Asked 7 years ago
24 Apr 2017
Views 780
sqltreat

sqltreat posted

how to use C/C++ code in MySQL ?

want to make some function which is not in MySQL , but we can easily can do at C / C++
so if we can make program in C / C++ and use it at MySQL

so is that possible to use C / C++ code at MySQL

ravi

ravi
answered Nov 30 '-1 00:00

make .so file from the available code ,
suppose custom_func.so file

Now connect .so file to MySQL custom function


mysql> CREATE FUNCTION custom_func RETURNS STRING SONAME 'custom_func.so';


use custom function


mysql> select  custom_func ("process me");
Post Answer