I have a table which include a column named 'PCO',
In this column,there are lots of different values,such as 'PCO1','PCO2',...............'PCON',
I want to select the rows include 'PCO1' or 'PCO2' or 'PCO3' and subset them,
but the situation is that I want to use a string that
strPCO=="PCO1","PCO2","PCO3", to select values
so I write a script like:
data_table = open (DATA_PATH)
PCO_CONDITION = {"PCO1","PCO2","PCO3"};
for (i=1,i<=n items(PCO_CONDITION),i++,
data_table<<select where (:PCO ==PCO_CONDITION)
);
dt=data_table<<subset (selected rows);
this script cant work,can anybody tell me how to deal with it?
Thanks guys