if (exists (select * from sys.objects where name = 'stop_Delete_Customer'))
drop trigger stop_Delete_Customer
go
create trigger stop_Delete_Customer
on T_customer
for insert
as
print 'hello world'
这触发器有什么问题,总报错
初学
触发器
------解决方案--------------------
可能是空格全角问题
if (exists (select * from sys.objects where name = 'stop_Delete_Customer'))
drop trigger stop_Delete_Customer
go
create trigger stop_Delete_Customer
on T_customer
for insert
as
begin
print 'hello world'
end