Following is a piece of SQLJ code (from a manual). Does anyone know what
iter.NAME() means? I don't see any method called "NAME" in "iterator"
class.
#sql [ctx] iter = {SELECT LASTNAME FROM EMPLOYEE};
while (iter.next()) {
System.out.println(iter.NAME());
count++;
}
Thanks
Raquel.
Daniel Dittmar - 29 Jun 2004 19:53 GMT
> Following is a piece of SQLJ code (from a manual). Does anyone know what
> iter.NAME() means? I don't see any method called "NAME" in "iterator"
[quoted text clipped - 5 lines]
> count++;
> }
My guess is that it's just a type and should be iter.LASNAME (), as the
iterator allows you access to the columns by name.
Daniel