Home » Other » Client Tools » How to execute this Function in Toad (2 Merged)
How to execute this Function in Toad (2 Merged) [message #567173] Mon, 24 September 2012 23:13 Go to next message
kshahabuddin16@gmail.com
Messages: 2
Registered: September 2012
Location: Mumbai
Junior Member
CREATE OR REPLACE FUNCTION M_SAS.DISPLAY_DENT_NODE
(M_DENT IN c_dents.dent%TYPE
)
RETURN c_dents.dent_Node%TYPE AUTHID CURRENT_USER
IS
return_dent_Node c_dents.dent_Node%TYPE;
BEGIN

SELECT MAX(dent_code)
INTO return_dent_Node
FROM c_dents
WHERE dent = m_dent;

RETURN return_dent_Node;

END display_dent_Node;
Re: How to execute this Function in Toad (2 Merged) [message #567179 is a reply to message #567173] Mon, 24 September 2012 23:40 Go to previous messageGo to next message
Michel Cadot
Messages: 68625
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
From your previous topic:

BlackSwan wrote on Sat, 15 September 2012 15:12
Since we don't have your tables or data, we can not compile, run or test posted code.
It would be helpful if you provided DDL (CREATE TABLE ...) for tables involved.
It would be helpful if you provided DML (INSERT INTO ...) for test data.
It would be helpful if you followed Posting Guidelines - http://www.orafaq.com/forum/t/88153/0/311
It would be helpful if you provided expected/desired results & a detailed explanation how & why the test data gets transformed or organized.


Michel Cadot wrote on Sat, 15 September 2012 16:15
And also Please How to use [code] tags and make your code easier to read.
Make sure that lines of code do not exceed 80 characters when you format.
Indent the code, use code tags and align the columns in result.
Use the "Preview Message" button to verify.
Always post your Oracle version, with 4 decimals.
...


I bet if you read the simple help in TOAD you will know how to execute it.
As you are beginner I recommend you to use SQL*Plus. TOAD are for people that first master SQL.

Regards
Michel

Re: How to execute this Function in Toad (2 Merged) [message #567206 is a reply to message #567179] Tue, 25 September 2012 04:42 Go to previous message
muralikri
Messages: 638
Registered: August 2011
Location: chennai
Senior Member

Try with CONTROL+ENTER
select M_SAS.DISPLAY_DENT_NODE(value) from dual
Previous Topic: running client sqlplus
Next Topic: how can i edit the timeout for each user
Goto Forum:
  


Current Time: Fri Mar 29 06:38:05 CDT 2024