IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Problem during select


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
rajandhla

Active User


Joined: 18 Oct 2005
Posts: 182
Location: Luton UK

PostPosted: Wed Oct 10, 2007 5:18 pm
Reply with quote

It looks quite simple but...?

A new column is added to the table using ALTER. When I query using select * I can see all the columns but when I specifically select the newly added column it's giving the error -206.

Any advice?

Cheers,
Back to top
View user's profile Send private message
nuthan

Active User


Joined: 26 Sep 2005
Posts: 146
Location: Bangalore

PostPosted: Wed Oct 10, 2007 5:24 pm
Reply with quote

Check the column name which you have mentioned in select.

SQLCODE -206 is Column does not exist in any table in the SELECT.
Back to top
View user's profile Send private message
rajandhla

Active User


Joined: 18 Oct 2005
Posts: 182
Location: Luton UK

PostPosted: Wed Oct 10, 2007 5:26 pm
Reply with quote

Thanks nuthan for prompt reply....

I did check the column name couple of times..it's the same name iam giving in the select

cheers
Back to top
View user's profile Send private message
ksk

Active User


Joined: 08 Jun 2006
Posts: 355
Location: New York

PostPosted: Wed Oct 10, 2007 5:28 pm
Reply with quote

Are you mentioning the table name which has the specified colomn name?
Back to top
View user's profile Send private message
guptae

Moderator


Joined: 14 Oct 2005
Posts: 1208
Location: Bangalore,India

PostPosted: Wed Oct 10, 2007 6:16 pm
Reply with quote

Hi There,

Can u please give us both the query as well as output.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Wed Oct 10, 2007 6:18 pm
Reply with quote

Hello,

Where are you running this query (program, spufi, etc)?
Back to top
View user's profile Send private message
rajandhla

Active User


Joined: 18 Oct 2005
Posts: 182
Location: Luton UK

PostPosted: Wed Oct 10, 2007 7:07 pm
Reply with quote

Thanks guys for all of you...

The real problem is during altering the table new column name given/added as "ind_flag" and this became case sensitive .

It's works if i give in select as "ind_flag"....
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts Dynamically pass table name to a sele... DB2 2
No new posts SELECT from data change table DB2 5
No new posts Select two different counts from SQL... DB2 6
No new posts z/vm installation problem All Other Mainframe Topics 0
Search our Forums:

Back to Top