我试图让客户的姓氏,名字 - dob,我得到的所有东西都打印在同一个地方,知道吗?
declare n_curs cursor for
select unique pin,surname,given1,given2,dob from crcharge where
chargenum in (select chargenum from crbookdd where book_no = rpt.book_no)
order by surname,given1
print ESC, "&l4E"
foreach n_curs into t_pin, t_surname, t_given1, t_given2, t_dob
if kick_new then
print column 1, ESC, "&a0G", ESC, "&l3O", ESC, "&f4y3X",
ESC, "&l8D",ESC, "&l4E"
end if
let shtwrd_count = 0
if shtwrd_count > 6 then
let shtwrd[shtwrd_count] = t_shtwrd
let shtwrd_count = shtwrd_count + 1
Exit foreach
end if
print
print ESC,"&a6R", ESC, "&a3C",
upshift(t_surname) clipped, ",",
updown(t_given1) clipped," " ,
updown(t_given2) clipped,"-", t_dob clipped;
end foreach