Answers for "sql check if table exists before insert"

SQL
8

sql check if table exists before insert

IF (EXISTS (SELECT * 
                 FROM INFORMATION_SCHEMA.TABLES 
                 WHERE TABLE_SCHEMA = 'TheSchema' 
                 AND  TABLE_NAME = 'TheTable'))
BEGIN
    --Do Stuff
END
Posted by: Guest on March-05-2020

Code answers related to "sql check if table exists before insert"

Code answers related to "SQL"

Browse Popular Code Answers by Language