我有一个名为 test 的表和另一个名为 trigg 的表......我想要的是......每当插入“name”为“rakesh”的数据进行测试......它应该触发一个触发器来插入'trigg' 表中的年龄....
我自己试过.... chk it....
create trigger trigger1
on test
after insert
as
if((select name from test) like 'rakesh')
begin
insert into trigg(age)
select name from test
end
但它没有工作..每当我插入测试..得到这个错误:
Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <= , >, >= or when the subquery is used as an expression.
帮帮我....