Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

How to do IF NOT EXISTS in SQLite

INSERT INTO EVENTTYPE (EventTypeName)
SELECT 'ANI Received'
WHERE NOT EXISTS (SELECT 1 FROM EVENTTYPE WHERE EventTypeName = 'ANI Received');
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #How #IF #NOT #EXISTS #SQLite
ADD COMMENT
Topic
Name
7+2 =