428d851913
* refactor: generic rename to mysql * refactor: g4 with mysql syntax * test: mysql syntax * refactor: remove useless keywords * refactor: remove nonReserved keywords * refactor: lint specificFunction --------- Co-authored-by: liuyi <liuyi@dtstack.com>
14 lines
613 B
SQL
14 lines
613 B
SQL
-- https://dev.mysql.com/doc/refman/8.0/en/create-function-loadable.html
|
|
|
|
/* CREATE [AGGREGATE] FUNCTION [IF NOT EXISTS] function_name
|
|
RETURNS {STRING|INTEGER|REAL|DECIMAL}
|
|
SONAME shared_library_name */
|
|
|
|
|
|
|
|
CREATE FUNCTION IF NOT EXISTS my_concat_ws RETURNS STRING SONAME 'udf_my_concat_ws.so';
|
|
CREATE FUNCTION my_concat_ws RETURNS INTEGER SONAME 'udf_my_concat_ws.so';
|
|
CREATE FUNCTION my_concat_ws RETURNS REAL SONAME 'udf_my_concat_ws.so';
|
|
CREATE FUNCTION my_concat_ws RETURNS DECIMAL SONAME 'udf_my_concat_ws.so';
|
|
CREATE FUNCTION IF NOT EXISTS my_concat_ws RETURNS DECIMAL SONAME 'udf_my_concat_ws.so';
|