我的条件如SELECT * FROM table1 WHERE table1.Status = 'A' and table1.Description like '%valid%'
我怎么能把这个语句放在路由器中,以便我知道哪一行应该发送到目标?
答案 0 :(得分:0)
尝试使用允许自定义查询定义的子选择路由器:
select node_id
from sym_node
where 0 < (
select count(*)
FROM table1
WHERE table1.Status = 'A'
and table1.Description like '%valid%'
and table1.id = :id
);