Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

show function definition in mysql

I am working with existing project, and I am found a sql query with sql-function like

SELECT * FROM money WHERE  amount = float_convert(0.1);

This Query is Working Properly, But I want to see and edit the function float_convert();

I am already tried SHOW FUNCTION STATUS,

It's only showing functions status, I need to view the function definition.

like image 833
Selvaa Avatar asked Sep 06 '14 06:09

Selvaa


People also ask

How do I show functions in MySQL?

Step 1. Connect to the database that you want to show the stored functions. Step 2. Open the Functions menu, you will see a list of functions which belong to the database.

How do you show a function?

The notation y=f(x) defines a function named f. This is read as “y is a function of x.” The letter x represents the input value, or independent variable. The letter y, or f(x), represents the output value, or dependent variable.

How do you define a function in MySQL?

The syntax to create a function in MySQL is: CREATE FUNCTION function_name [ (parameter datatype [, parameter datatype]) ] RETURNS return_datatype BEGIN declaration_section executable_section END; function_name. The name to assign to this function in MySQL.

How do I find MySQL definer?

To identify which DEFINER values exist in each table, use these queries: SELECT DISTINCT DEFINER FROM INFORMATION_SCHEMA. EVENTS; SELECT DISTINCT DEFINER FROM INFORMATION_SCHEMA. ROUTINES; SELECT DISTINCT DEFINER FROM INFORMATION_SCHEMA.


1 Answers

SHOW CREATE FUNCTION float_convert

or

SHOW CREATE VIEW float_convert

perhaps ?

like image 100
Tuncay Göncüoğlu Avatar answered Sep 22 '22 12:09

Tuncay Göncüoğlu