sql drop table if exists sql server drop table if exists sql drop table if exists synapse

The solution for “sql drop table if exists sql server drop table if exists sql drop table if exists synapse” can be found here. The following code will assist you in solving the problem.

DROP TABLE IF EXISTS dbo.Customers
— 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 OBJECT_ID(N’tempdb..#Customer’) IS NOT NULL
BEGIN
DROP TABLE #Customer
END

Thank you for using DeclareCode; We hope you were able to resolve the issue.

More questions on [categories-list]

0
inline scripts encapsulated in