我有一個名爲test的表和名爲trigg的另一個表.....我想要的是......只要數據有'name'作爲'拉克什」被插入到測試...它應該引發觸發器插入年齡在‘崔格’表....我想在sql server中做出條件觸發器......
我想通過我自己.... CHK它...
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
但它沒有工作.. 每當我在測試我將..getting此錯誤:
Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <= , >, >= or when the subquery is used as an expression.
幫我....