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

content addition to a text column

Status
Not open for further replies.

Fatih235

MIS
May 30, 2002
19
0
0
US
hey all;

i have a column "story" which is text datatype.It has some content in it. I would like to do this;

update story_table
set story=story + 'blah blah blah'
where story_id in(1,2,3)

i am getting an error of datatype error. How can i fix it?
 
something like this:

declare @story varhar(800)

set @story = (select story from story_table where story_id = 1)

update story_table
set story= @story + 'blah blah blah'
where story_id in (1,2,3)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top