create proc proc1
as
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[b]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table B
select A.计划 into B
from A
where convert(char(10),getdate(),102)= convert(char(10), convert(datetime,A.日期,102),102)
exec proc1
go
create proc proc2
as
alter table B
add 完成情况 varchar(10)
alter table B
add 评估 VARCHAR(10)
go
[此贴子已经被作者于2006-9-4 15:24:00编辑过]