Will the code be executed ??? [message #253938] |
Wed, 25 July 2007 06:03 |
kumarn
Messages: 13 Registered: June 2007 Location: London
|
Junior Member |
|
|
Hi,
CREATE OR REPLACE PROCEDURE proc1
AS
v_flag VARCHAR2(1):='Y';
BEGIN
IF v_flag != 'Y' THEN
-- call another proc ---
proc2;
END IF;
END proc1;
CREATE OR REPLACE PROCEDURE proc2
AS
v_address VARCHAR2(35):= owa_util.GET_CGI_ENV('REMOTE_ADDR');
BEGIN
--update table ---
update USER_ADD set address = v_address;
END proc2;
if I execute proc1, will owa_util.GET_CGI_ENV('REMOTE_ADDR')
be executed?
|
|
|
|
Re: Will the code be executed ??? [message #253954 is a reply to message #253941] |
Wed, 25 July 2007 06:31 |
kumarn
Messages: 13 Registered: June 2007 Location: London
|
Junior Member |
|
|
Hi pabolee,
I have not tried it as currently I have no access to Oracle.
One of my friend asked this question and since I am not sure, I thought to put this in this forum.
Surely my intention was not to test anyone's knowledge. I have posted many queries before and I got satisfactory answers.
And if you know the answer instead of typing ~ 35 words, one letter Y/N was enough.
Thanks
Kumarn
|
|
|
|
Re: Will the code be executed ??? [message #253967 is a reply to message #253954] |
Wed, 25 July 2007 07:05 |
|
Maaher
Messages: 7065 Registered: December 2001
|
Senior Member |
|
|
kumarn wrote on Wed, 25 July 2007 13:31 | Hi pabolee,
I have not tried it as currently I have no access to Oracle.
| Oracle XE is a download of about 200MB and it is freely available.
kumarn wrote on Wed, 25 July 2007 13:31 | And if you know the answer instead of typing ~ 35 words, one letter Y/N was enough.
| I have to agree with paboblee: we're not here to function as your sandbox test environment.
MHE
[Updated on: Wed, 25 July 2007 07:05] Report message to a moderator
|
|
|
|