| View previous topic :: View next topic |
| Author |
Message |
Raquel Guest
|
Posted: Tue Jun 29, 2004 7:02 am Post subject: SQLJ code .... |
|
|
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.
|
|
| Back to top |
|
 |
Daniel Dittmar Guest
|
Posted: Tue Jun 29, 2004 6:53 pm Post subject: Re: SQLJ code .... |
|
|
Raquel wrote:
| Quote: | 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++;
}
|
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
|
|
| Back to top |
|
 |
|