我可以运行以下语句并获得正确的结果:
select moon_phase_text (sysdate)
from dual;
select date_day3
from aday3import t1,
aasum_report t2
where t1.date_day3 = t2.game_date;
此声明为我提供了一个日期列表,即22-FEB-03
但是当我尝试使用以下语句更新表中的字段时,我收到错误ORA-00936: missing expression
update aday3import
set moon_phase = select moon_phase_
(select date_day3
from aday3import t1,
aasum_report t2
where t1.date_day3 = t2.game_date )
from dual;
答案 0 :(得分:0)
而不是双重。尝试在select语句本身中连接moon_phase_
update aday3import set moon_phase =
(select 'moon_phase_'||date_day3
from aday3import t1,
aasum_report t2
where t1.date_day3 = t2.game_date )