我需要自己打印出"Hello"这个词的字母,我写道:
Declare
c1 Number:=1;
c2 Varchar2(5);
begin
for c1 in 1..5
loop
select substr('Hello' , c1 , 1 ) into c2 from dual;
dbms_output.put_line(c2);
end loop;
end;
Run Code Online (Sandbox Code Playgroud)
但是它会跳过前两个字母,然后输出
l
l
o
Run Code Online (Sandbox Code Playgroud)
任何想法可能是什么问题?谢谢.