Shawn
New Member
- Joined
- Aug 8, 2009
- Messages
- 10
- Reaction score
- 0
- Points
- 1
CREATE OR REPLACE FUNCTION getThreadCount RETURN NUMBER AS BEGIN
SELECT COUNT(*) INTO counter FROM thread;
RETURN counts;
END;
/
this function compiles, oracle accepts its. I'm not able to execute it ... exec getThreadCount returns an error stating I'm missing an arguement. I tried this block below and it didn't work either.
BEGIN
DECLARE X NUMBER
EXEC GETTHREADCOUNT(X)
END;
/
Any advice? Oracle's guide and googling for a couple hours now and I'm coming up short.
but "exec getThreadCount" and "exec getThreadCount()" say I'm missing arguments
SELECT COUNT(*) INTO counter FROM thread;
RETURN counts;
END;
/
this function compiles, oracle accepts its. I'm not able to execute it ... exec getThreadCount returns an error stating I'm missing an arguement. I tried this block below and it didn't work either.
BEGIN
DECLARE X NUMBER
EXEC GETTHREADCOUNT(X)
END;
/
Any advice? Oracle's guide and googling for a couple hours now and I'm coming up short.
but "exec getThreadCount" and "exec getThreadCount()" say I'm missing arguments