Posted: Wed Jul 28, 2010 8:17 am Post subject: select multiple element of same name from Environment
Knight
Joined: 25 Aug 2006 Posts: 589
My ESQL to set up the Environment is like this
SET Environment.AA.BB.CC.ITEM1[1] = 'ABC1111';
SET Environment.AA.BB.CC.ITEM1[2] = 'ABC1112';
SET Environment.AA.BB.DD.ITEM1 = 'ABD1111';
SET Environment.AA.BB.CC.ITEM2 = 'ABC2221';
SET Environment.AA.BB.CC.ITEM3 = 'ABC3331';
Now I want t select all ITEM1 from the Environment.
I use
SET Environment.ITEMRESULT1[] = (SELECT P.ITEM1 FROM Environment.AA.BB.[] AS P);
Using debug under Environment, I can see the results as follow
ITEMRESULT1
ITEM1 ABC1111
ITEMRESULT1
ITEM1 ABD1111
I have problem picking up
Environment.AA.BB.CC.ITEM1[2] = 'ABC1112';
Can some one help with my ESQL so that I can get all ITEM1 ?
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum