sql drop table if exists
snippet in sql

sql drop table if exists

user645

DROP TABLE IF EXISTS dbo.Customers

sql server drop table if exists

user3783

IF OBJECT_ID('dbo.Scores', 'U') IS NOT NULL DROP TABLE dbo.Scores; 

sql drop table if exists

user9847

IF OBJECT_ID('dbo.Scores', 'U') IS NOT NULL 
  DROP TABLE dbo.Scores; 

table drop if exist sql server

user1661

IF OBJECT_ID('dbo.Scores', 'U') IS NOT NULL DROP TABLE dbo.Scores;