Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

on sql table data exists

 If EXISTS (SELECT 1 FROM dbo.T1 WHERE T1.Name='Scot')
    BEGIN
         --<Do something>
    END 

ELSE    
     BEGIN
       --<Do something>
     END
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #sql #table #data #exists
ADD COMMENT
Topic
Name
4+2 =