in reply to how to use nested statement handler?
my $pr1 = qq{select customer_name from customer where id = ? }; [download]
$sth1->execute($emp_id); [download]