“SQL Server Drop Table jika ada” Kode Jawaban

SQL Drop Table jika ada

DROP TABLE IF EXISTS dbo.Customers
Relieved Rook

SQL Server Drop Table jika ada

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

Jatuhkan meja jika ada

DROP TABLE IF EXISTS dbo.Scores
Giamblers

fungsi drop t-sql jika ada

IF EXISTS (
    SELECT * FROM sysobjects WHERE id = object_id(N'function_name') 
    AND xtype IN (N'FN', N'IF', N'TF')
)
    DROP FUNCTION function_name
GO
Open Orangutan

SQL Server Drop Table jika ada

-- 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; 
VasteMonde

SQL Drop Table jika ada

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

Jawaban yang mirip dengan “SQL Server Drop Table jika ada”

Pertanyaan yang mirip dengan “SQL Server Drop Table jika ada”

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya