Provate ad eseguire il seguente codice SQL su SqlServer… ma la logica booleana che fine ha fatto?
DECLARE @Param1 INT, @Param2 INT
SET @Param1 = NULL
SET @Param2 = NULL
IF (@Param1 = @Param2)
PRINT ‘EQUAL’
ELSE
PRINT ‘NOT EQUAL’
IF NOT(@Param1 = @Param2)
PRINT ‘EQUAL’
ELSE
PRINT ‘NOT EQUAL’
il risultato per entrambe รจ ‘NOT EQUAL’