Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Data Column in Table Uses COLON

Status
Not open for further replies.

beanNut

IS-IT--Management
Jun 2, 2004
28
US
Can anyone help me I'm using DB2 to select date range
and the column header was defined with a colon.
this doesn't seem to work below????


select db2admin."v_QISDBGARRY"."DATE:D"
from DB2ADMIN."v_QISDBGARRY"
where "DATE:D" between '2004-11-30' AND '2005-01-01'
 
Bean,
Debug it bit by bit.
Get rid of the where clause and see if it runs.
If not, replace the specific field selection with a SELECT *
I've not seen a colon in a field name before and would have thought that it is a reserved symbol as it is used to determine host variables and null variables in programming languages that interface with DB2.

If it is at all possible, I would change the column name as without doing this I think you are bringing trouble and misunderstanding down on yourself.

Marc
 
What is the use of colon:)) symbol, in db2 and what does it do?

example:

:variable left outer join :variable

means what?

I appreciate u, if u reply for this que?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top