SQL Server 2000 to Oracle 9i -- SP_EXECUTESQL
448803Aug 4 2005 — edited Oct 27 2005What is the besst way to translate the following SQL Server statements?
SET @exec = 'SELECT @exist = ' + quotename(@Index_Name) + ' FROM ' + quotename(@Table_Name) +
' WHERE ' + quotename(@Index_Name) + ' = @Record_Index '
EXEC sp_executesql @exec, N'@exist [int] OUTPUT, @Record_Index [int]',
@exist OUTPUT, @Record_Index = @Record_Index
Is there a comparable construct for Oracle?
Thanks,
Chris