0
我下面的查询:在Oracle中创建一个查询,以取代变量
SELECT c.accountid, c.accountnum
FROM account o, [email protected] c
WHERE o.accountid = c.accountid and c.date > sysdate;
我登录邻数据中心”数据库,以及从C数据中心的数据库中提取信息,我需要一个简单的PL/SQL查询如下:
declare
variable
begin
statements...
....
end
我不希望任何程序或功能。
我想要做的就是用[email protected] c
和sysdate
作为变量。
select c.accountid, c.accountnum
from account o, (variable)
where o.accountid = c.accountid and c.date > (variable);
我该怎么做?