AppletTalk.com Forum Index AppletTalk.com
Java discussions newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

SQLJ code ....

 
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java and Databases
View previous topic :: View next topic  
Author Message
Raquel
Guest





PostPosted: Tue Jun 29, 2004 7:02 am    Post subject: SQLJ code .... Reply with 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++;
}

Thanks
Raquel.

Back to top
Daniel Dittmar
Guest





PostPosted: Tue Jun 29, 2004 6:53 pm    Post subject: Re: SQLJ code .... Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java and Databases All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.