SQL -Droptabelle, falls vorhanden
DROP TABLE IF EXISTS dbo.Customers
Relieved Rook
DROP TABLE IF EXISTS dbo.Customers
IF OBJECT_ID('dbo.Scores', 'U') IS NOT NULL DROP TABLE dbo.Scores;
DROP TABLE IF EXISTS dbo.Scores
DROP TABLE IF EXISTS my_table;
-- Classic table
IF OBJECT_ID('my_schema.my_table', 'U') IS NOT NULL DROP TABLE my_schema.my_table;
-- Temporary table
IF OBJECT_ID('tempdb.my_schema.#my_table') IS NOT NULL DROP TABLE #my_table;
IF EXISTS(SELECT *
FROM dbo.Scores)
DROP TABLE dbo.Scores