hello guys how r u ?
my question is that, i have to append same text in multiple rows where column value text length less then 5 char
so what would be the query for that ??
reply soon
Thanks
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Faisal AnsariPosted Jun 29, 2012, 5:26 AM
Jignesh TrivediPosted Jun 29, 2012, 3:38 AM
I have one Question here Is your field nullable?
If NO then go with Santosh 's solution
Other wise try
some modification of above query
update table_user
set useraddress=isnull(useraddress,'')+'Some of your text'
where len(isnull(useraddress,''))<5
Because len(null) is always return null so condition is not fulfill.
hope this will help you.
Santhosh Kumar JayaramanPosted Jun 29, 2012, 3:29 AM
set useraddress=useraddress+'test5'
where len(useraddress)<5