IF EXISTS condition once every two

When the time is determined for a plurality of IF EXISTS conditions coexist with the AND connector, the NOT EXISTS empathy

IF EXISTS (SELECT 1 ) AND EXISTS (SELECT 2 )

BEGIN ....... END

ELSE BEGIN ..... END

Similarly if there is a plurality of conditions can be used OR connection, the NOT EXISTS empathy

 

Guess you like

Origin www.cnblogs.com/zhoushiya/p/12107377.html