create trigger myinsert on userlist for insert,delete,update
as
begin
update test set pq_rs_zz=select COUNT(*) FROM userlist WHERE (zhiglx = '派遣工')
end
------解决方案-------------------- create trigger myinsert on userlist for insert,delete,update as begin update test set pq_rs_zz=(select COUNT(*) FROM userlist WHERE (zhiglx = '派遣工')) end