SQLServer
-- 判断表是否存在 IF NOT EXISTS (SELECT * FROM sysobjects where id = OBJECT_ID(N‘TableName‘) AND OBJECTPROPERTY(id, N‘IsUserTable‘) = 1)
2024-01-22 12:48:22
SQLServer
-- 判断表是否存在 IF NOT EXISTS (SELECT * FROM sysobjects where id = OBJECT_ID(N‘TableName‘) AND OBJECTPROPERTY(id, N‘IsUserTable‘) = 1)