Ask a Question related to IBM DB2, Design and Development.
-
Yves Glodt #1
Update portion of a string column
Hi,
I have a column that has a string field, and I only wanna update the 3rd
character in the string. e.g. change 'StRing' to 'String'. Is this
possible with raw sql?
I can do it with a simple php script, however the raw sql solution would
be prefered.
regards,
Yves Glodt
----------------------------------------------------------------
ELECTRO SECURITY
Yves Glodt yves.glodt at electrosecurity.lu
Support Informatique
73, rue de Strasbourg Tél: ++352 406 406-1
L-2561 Luxembourg Fax: ++352 406 407
Web: [url]http://www.electrosecurity.lu[/url]
----------------------------------------------------------------
Yves Glodt Guest
-
Reference Column Name by string...
If you read half way through my question and think to yourself, "Huh?" you will know exactly how I feel right now. I am dynamically creating a... -
Multi-parameter query string in hyperlink column...
I have found some postings on multi-parameter hyperlinks. But none of them involve calling a javascript function. I have almost got the NavigateUrl... -
How to sort a String column as Numeric?
I have a datagrid (dgResults) that I am populating from a SQL stored procedure. After I fill my dataset (ds), I cache the dataset this way:... -
String question: Returning portion of string with words surrounding highlighted search term?
I'm looking to find or create an ASP script that will take a string, examine it for a search term, and if it finds the search term in the string,... -
Hyperlink Template Column w Query String
Hi, I need to bind data to a datagrid and have a custom hyperlink column that has multiple elements in the querystring: ... -
PM \(pm3iinc-nospam\) #2
Re: Update portion of a string column
Anything similar to
values(
concat ( (left('abcdef', 2)), (concat( ('z'),
(right('abcdef', length('abcdef')-3)) ) ) )
)
PM
PM \(pm3iinc-nospam\) Guest
-
Lennart Jonsson #3
Re: Update portion of a string column
Yves Glodt <yves.glodt@SPAMTRAPelectrosecurity.lu> wrote in message news:<3f616642$1_1@news.vo.lu>...
how about> Hi,
>
> I have a column that has a string field, and I only wanna update the 3rd
> character in the string. e.g. change 'StRing' to 'String'. Is this
> possible with raw sql?
> I can do it with a simple php script, however the raw sql solution would
> be prefered.
>
> regards,
> Yves Glodt
>
update t set c = substr(c,1,2) || 'r' || substr(c,4)
/Lennart
>
>
> ----------------------------------------------------------------
> ELECTRO SECURITY
> Yves Glodt yves.glodt at electrosecurity.lu
> Support Informatique
> 73, rue de Strasbourg Tél: ++352 406 406-1
> L-2561 Luxembourg Fax: ++352 406 407
> Web: [url]http://www.electrosecurity.lu[/url]
> ----------------------------------------------------------------Lennart Jonsson Guest



Reply With Quote

