1. 程式人生 > >sql語句給資料庫表新增欄位

sql語句給資料庫表新增欄位

BEGIN TRANSACTION
SET QUOTED_IDENTIFIER ON
SET ARITHABORT ON
SET NUMERIC_ROUNDABORT OFF
SET CONCAT_NULL_YIELDS_NULL ON
SET ANSI_NULLS ON
SET ANSI_PADDING ON
SET ANSI_WARNINGS ON
COMMIT
BEGIN TRANSACTION
GO
ALTER TABLE dbo.Test ADD
LXR nvarchar(100) NULL,
LXR_Tel nvarchar(50) NULL,
IsVaild int NULL
GO
ALTER TABLE dbo.Test SET (LOCK_ESCALATION = TABLE)
GO
COMMIT