Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > IBM DB2 > Re: Space betwe...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 4 Topic 8844 of 9520
Post > Topic >>

Re: Space between characters

by "Dan van Ginhoven" <danfan46@[EMAIL PROTECTED] > May 1, 2008 at 01:08 PM

Hi!
If you have a  fixed number of characters you can use
INSERT(INSERT(INSERT(INSERT(INSERT(INSERT('ABCDEFG',2,0,' '),4,0,'
'),6,0,' '),8,0,' '),10,0,' '),12,0,' ')
else you will want a stored procedure or UDF looping over the length of
the string doing for instance an insert
/dg

"lenygold via DBMonster.com" <u41482@[EMAIL PROTECTED]
> wrote in message
news:837fb3b2f4e25@[EMAIL PROTECTED]
> I HAVE A STRING:   ABCDEFG
>
> HOW TO INSERT A SPACE BETWEEN ALL CHARACTERS?
> REQUESTED OUTPUT:
>
> A B C D E F G
>
> Thank's in advance Leny G.
>
> -- 
> Message posted via DBMonster.com
> http://www.dbmonster.com/Uwe/Forums.aspx/ibm-db2/200804/1
>
 




 4 Posts in Topic:
Space between characters
"lenygold via DBMons  2008-05-01 11:46:47 
Re: Space between characters
"Dan van Ginhoven&qu  2008-05-01 13:08:16 
Re: Space between characters
"Dave Hughes" &  2008-05-01 08:23:26 
Re: Space between characters
"lenygold via DBMons  2008-05-01 14:00:11 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Tue Dec 2 20:46:47 CST 2008.