473,399 Members | 4,177 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

call function to function in pl\sql?

kiss07
99
HI

How can i call from function to function in Oracle pl\sql?

I need a sample program .Please clarify my doubt.Pls.


Arun..
Apr 25 '07 #1
2 34388
HI

How can i call from function to function in Oracle pl\sql?

I need a sample program .Please clarify my doubt.Pls.


Arun..

Here's the first function declaration:

----------------------------------------------------------------------------------------------------
CREATE OR REPLACE FUNCTION firstFunc(pParm1 IN Varchar2)
RETURN BOOLEAN AS
vDate DATE;
BEGIN

SELECT sysdate INTO vDate FROM dual;

--call function two
if secondFunc(vdate) = 'WEDNESDAY' then
dbms_output.put_line("It's wednesday");
else
dbms_output.put_line("It's not wednesday");
end if;

END firstFunc;

----------------------------------------------------------------------------------------------------

Here's the second function declaration, that is called by the first:

----------------------------------------------------------------------------------------------------
CREATE OR REPLACE FUNCTION secondFunc(pParm1 IN DATE)
RETURN VARCHAR2 AS
vDay varchar2(20);
BEGIN

RETURN to_char(pParm1, 'DAY');

END secondFunc;
Apr 26 '07 #2
kiss07
99
Thanku very much my dear friend.
Apr 26 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

11
by: David | last post by:
I am learning plsql. I would like to run a stored procedure to calculate my bank account value by predicted 10% annual growth rate. Below is my plsql that is having problems. Your help is highly...
0
by: Anand | last post by:
Hi all, I have a requirement of - checking the syntax, compiling and executing the plsql files (procedures, functions, triggers etc) from a remote machine. I use JAVA for development and i had...
1
by: comavas | last post by:
This error occurs while I open the url to the plsql procudure: http://192.168.0.154:7777/pls/chwd/chwebown.helloworld PS: The compilation of this procedure was successful! ...
1
by: Peter Alberer | last post by:
Hi there, i have a problem with a query that uses the result of a plsql function In the where clause: SELECT assignments.assignment_id, assignments.package_id AS package_id,...
15
by: marvado | last post by:
Hi, can I run phpinfo(); or any php code from an oracle plsql package using htp.p from the oracle web toolkit owa? what I need is to run any php code using htp.p() I might be missing...
1
amitpatel66
by: amitpatel66 | last post by:
Hi, Is PLSQL Anonymous block allowed in CASE WHEN statement when CASE is used in SELECT statement. Check below code which executes but does not return anything: SELECT job, CASE WHEN job =...
3
by: ravimegharaj | last post by:
Hello, I have a query with First function in MS Access. I want to know the equivalent function in PLSQL. Your help will be highly appreciated. Thanks in advance. Ravi
0
by: sybrandb | last post by:
"Jorge Pinto" <jorgep@sympatico.cawrote in message news:<L2HQa.3116$104.264170@news20.bellglobal.com>... utl_smtp is only a wrapper for a java procedure. Need I say more. And oh yes, you may need...
1
by: atp2k3 | last post by:
Hello all, I am new to convert PLSQL to TSQL. Any expertise in SQL, please help me to do convert the belowed PLSQL procedure to SP in SQL server. I really appreciate your time. Thanks in advance....
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.