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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

What does this mean

Status
Not open for further replies.

zrazzaq

MIS
Apr 13, 2005
102
US
Hi all I am new to db2 sql
Basically need to know what does
substr(digits(field),1,9) || field || mean....thanks
Zishan
 
It's as regards the processing it will do on your "field" when it retrieves it.

There's an explanation of digits here


The substr is saying use from characters 1 to 9.

So effectively on retrieval your field goes though a digits routine, and of the results from this, characters 1 through 9 are then returned through the use of the substr function.

Cheers
Greg
 
zrazzaq,
This piece of code looks at a numeric column, turns it into a character column (that's the DIGITS bit), and then outputs from position 1 for 9 characters (the SUBSTR 1,9 bit).

Hope this helps.

Marc
 
Marc,

Your link sent me to the Web Traffic Analysis Module of the Web CEO site.
 
Pru,

What link?

If there is a link, I think it's one the tek-tips have added for advertising means.

Marc
 
Ah yes, I got snookered by the old advertising highlight! :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top