Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

if not exists insert sql

IF NOT EXISTS (SELECT * FROM EmailsRecebidos 
                   WHERE De = @_DE
                   AND Assunto = @_ASSUNTO
                   AND Data = @_DATA)
   BEGIN
       INSERT INTO EmailsRecebidos (De, Assunto, Data)
       VALUES (@_DE, @_ASSUNTO, @_DATA)
   END
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #exists #insert #sql
ADD COMMENT
Topic
Name
4+2 =