【发布时间】:2011-12-09 14:10:42
【问题描述】:
我需要将以下用 SQL-Server 编写的查询转换为 PL / SQL,但我无法将参数传递给子查询。
select
p.ID,
case
when p.column1 = 1
then (select top 1 sub.column1 from internal sub where sub.Id = p.Id)
end SubQueryWithParameter
from
parent
有什么想法吗?
【问题讨论】: