You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
DS7/DSWeb/word/新协航_设计文档/数据库建表文档/20140215/给main表增加字段用于删除合同.sql

22 lines
429 B
MySQL

3 years ago
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.Import_main ADD
ISDELETE tinyint default 0,
DELETEUSER varchar(50) NULL,
DELETETIME datetime NULL
GO
ALTER TABLE dbo.Import_main SET (LOCK_ESCALATION = TABLE)
GO
COMMIT
update Import_main set isdelete=0