-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Query returns row Number
PostPosted: Tue Apr 23, 2013 2:34 am 
Newbie

Joined: Mon Apr 22, 2013 8:07 am
Posts: 3
Hi all,

I am using java with db2. When i execute the query it returns a Row number at 0th position

Example
Query:select first_name,last_name,age from sample

IN TABLE
first_name last_name age
Chandara sekaran 25

Excepted Result
In 0th Position:Chandara
In 1st Position:sekaran
In 2nd Position:25

Actual Result
In 0th Position:1
In 1st Position:Chandara
In 2nd Position:sekaran
In 3rd Position:25

I want to know why the query return the row number
When i execute in toad ,it is executing fine

Could any one help me plz....

Regards
Chandarasekaran Myilsamy


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


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

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.