14 lines
319 B
Transact-SQL
14 lines
319 B
Transact-SQL
|
|
|
|
--月进度补充完成状态
|
|
IF NOT EXISTS (SELECT 1 FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 'JDGL_MonthPlan' AND COLUMN_NAME = 'IsOK')
|
|
BEGIN
|
|
ALTER TABLE JDGL_MonthPlan ADD IsOK bit;
|
|
END
|
|
GO
|
|
|
|
update JDGL_MonthPlan set IsOK =1 where RealDate is not null
|
|
update JDGL_MonthPlan set IsOK =0 where RealDate is null
|
|
GO
|
|
|