nguyenminhphuong
Technical User
Hi everyone!
I have the following FETCH statement that I don't understand:
1 EXEC SQL FETCH CURKOTHRTABNKET INTO
2 :HSTHYOSYU,
3 :HSTTWAYMX,
4 :HSTTRG,
5 :HSTORGCAR,
6 :HSTDSTCAR,
7 :HSTPASCAR001,
8 :HSTPASCAR002,
9 :HSTPASCAR003,
10 :HSTCLS,
11 :HSTARANAM,
12 :HSTABNUNTSUU:HSKABNUNTSUU,
13 :HSTABNMINSUU:HSKABNMINSUU
14 END-EXEC.
In lines 12 and 13, it fetchs only one value into 2 variable. It's strange for me. Can anyone please explain me the code? Sorry if my question is silly.
Thanks in advance!
I have the following FETCH statement that I don't understand:
1 EXEC SQL FETCH CURKOTHRTABNKET INTO
2 :HSTHYOSYU,
3 :HSTTWAYMX,
4 :HSTTRG,
5 :HSTORGCAR,
6 :HSTDSTCAR,
7 :HSTPASCAR001,
8 :HSTPASCAR002,
9 :HSTPASCAR003,
10 :HSTCLS,
11 :HSTARANAM,
12 :HSTABNUNTSUU:HSKABNUNTSUU,
13 :HSTABNMINSUU:HSKABNMINSUU
14 END-EXEC.
In lines 12 and 13, it fetchs only one value into 2 variable. It's strange for me. Can anyone please explain me the code? Sorry if my question is silly.
Thanks in advance!