Hi Friends,
I want the oracle equivalent for the following sql code,
Select @Command = 'IF OBJECTPROPERTY(object_id('''+ @TableName + '''), ''TableHasForeignRef'') = 1
DELETE FROM ' + @TableName + '
ELSE
TRUNCATE TABLE ' + @TableName
EXEC sp_MSForEachTable @Command
I have tried to find out, but no use. Please help me.
Thanks,
Ram.