我试了一下,是可以的:create proc dbo.procxxx
asif OBJECT_ID('abc123') is not null
   drop table abc123--创建表
create table abc123(v int)--插入数据
insert into abc123
values(1)
exec('if OBJECT_ID(''v_abc123'') is not null
      drop view v_abc123');--创建视图
exec('create view dbo.v_abc123 as select * from abc123;');select *
from dbo.v_abc123go
exec dbo.procxxx
/*
v
1
*/