10

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.

1

2 Answers 2

14
SHOW CREATE FUNCTION float_convert 

or

SHOW CREATE VIEW float_convert 

perhaps ?

Sign up to request clarification or add additional context in comments.

Comments

1

You can show the CREATE FUNCTION statement with the SQL below. *The doc explains the SQL below and \G can show it more clearly and you must select a database when showing the CREATE FUNCTION statement otherwise there is the error:

SHOW CREATE FUNCTION <function_name>; 

Or:

SHOW CREATE FUNCTION <function_name>\G 

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.