Hey,
I'm starting with DB2 triggers and I'm wondering how I can make a select with multiple columns into variables. Here is what I've been doing to select one column:
Code:
declare myVar smallint;
set myVar = (select colA from myTable where ....);
Now what if I want to select the columns colA and colB from myTable into two variables? Do I have to make two selects, or is there a better way?
Thanks