NiteCrawlr
Programmer
Isn't there in Oracle 8 anything that has the same function as the <b>If Exists<b> (in SQL Server)?? I have this Stored procedure in SQL SERVER:
***************
CREATE PROCEDURE [SP_EM_VERIF_NOVIS]
@EMPLID char(11),
@RESULTADO numeric(11) output
AS
Set @resultado = 0
IF Exists( Select [MANAGER_ID] FROM [PS_EM_ORG_NOVIS_VW] WHERE ([MANAGER_ID] = @EMPLID))
BEGIN
SET @RESULTADO = '1'
END
ELSE
BEGIN
SET @RESULTADO = '0'
END
RETURN @resultado
***************
What would this look like in Oracle?
PS: It can not have Select Count, I'm trying to avoid using it, that's why I'm using EXISTS.
***************
CREATE PROCEDURE [SP_EM_VERIF_NOVIS]
@EMPLID char(11),
@RESULTADO numeric(11) output
AS
Set @resultado = 0
IF Exists( Select [MANAGER_ID] FROM [PS_EM_ORG_NOVIS_VW] WHERE ([MANAGER_ID] = @EMPLID))
BEGIN
SET @RESULTADO = '1'
END
ELSE
BEGIN
SET @RESULTADO = '0'
END
RETURN @resultado
***************
What would this look like in Oracle?
PS: It can not have Select Count, I'm trying to avoid using it, that's why I'm using EXISTS.