orientechnologies / orientdb-docs

Repository of the entire OrientDB documentation.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

What is the SQL query to delete/drop a user-defined function?

pa-emmanuel opened this issue · comments

I can create a function with:

CREATE FUNCTION getTest "SELECT count(*) as number FROM People WHERE age = :age" PARAMETERS [age]

But how do I delete this function with SQL.

Hi @pa-emmanuel

There is no specific SQL command (yet), you can use a plain

DELETE FROM OFunction WHERE name = ?

Thanks

Luigi

Hi @pa-emmanuel

There is no specific SQL command (yet), you can use a plain

DELETE FROM OFunction WHERE name = ?

Thanks

Luigi

Thanks Luigi.