473,396 Members | 1,599 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,396 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 34387
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
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.