Basic Oracle Concepts and Programming Question:
Download Job Interview Questions and Answers PDF
How To Drop a Stored Function?
Answer:
If there is an existing stored function and you don't want it any more, you can remove it from the database by using the DROP FUNCTION statement as shown in the following script example:
SQL> CREATE OR REPLACE FUNCTION GET_SITE
2 RETURN VARCHAR2 AS
3 BEGIN
4 RETURN 'globalguidelinee.com';
5 END;
6 /
Function created.
SQL> DROP FUNCTION GET_SITE;
Function dropped.
SQL> CREATE OR REPLACE FUNCTION GET_SITE
2 RETURN VARCHAR2 AS
3 BEGIN
4 RETURN 'globalguidelinee.com';
5 END;
6 /
Function created.
SQL> DROP FUNCTION GET_SITE;
Function dropped.
Download Oracle Database Interview Questions And Answers
PDF
Previous Question | Next Question |
How To Call a Stored Function in Oracle? | How To Call a Stored Function with Parameters? |