declare
hour_in number:=4;
minute_in number:=59;
sek_in number:=45;
together_in number;
sat varchar(10):='G6';
M0 number;
begin
kopa_in:=((sek_in/60)+minute_in)/60+hour_in;
select M0 into M0
from jsm_nav
where ((sekunde/60)+minute)/60+stunda<together_in
and prn=sat;
select delta_n into deltan
from jsm_nav
where ((sekunde/60)+minute)/60+stunda<together_in
and prn=sat;
end;
這隻適用於只有一個值低於together_in
!我需要選擇n-1
的值,如果我們假設together_in
是n
的值! 謝謝!PL/SQL如何選擇n-1值?