|
|
| Re: calling a if block based on parameter [message #574506 is a reply to message #574505] |
Fri, 11 January 2013 07:16   |
muralikri
Messages: 638 Registered: August 2011 Location: chennai
|
Senior Member |

|
|
You are excepting this one...
create or replace PROCEDURE p1( p_str VARCHAR2)
IS
a VARCHAR2(5):=0;
b VARCHAR2(5):=0;
c VARCHAR2(5):=0;
BEGIN
IF instr ('a,b,c','a')>0 THEN
dbms_output.put_line('in A');
END IF;
IF instr ('a,b,c','b')>0 THEN
dbms_output.put_line('in b');
END IF;
IF instr ('a,b,c','c')>0 THEN
dbms_output.put_line('in c');
END IF;
END;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| Re: calling a if block based on parameter [message #574554 is a reply to message #574551] |
Sat, 12 January 2013 10:20  |
 |
Michel Cadot
Messages: 54125 Registered: March 2007 Location: Nanterre, France, http://...
|
Senior Member Account Moderator |
|
|
As I said this is the gates of hell and I will not lead someone to this place.
Whatever you are trying to achieve having this need you do it the wrong way or with the wrong language.
Regards
Michel
|
|
|
|