RE: UPDATETEXT
From: Ibrahim Shameeque (IbrahimShameeque_at_discussions.microsoft.com)
Date: 07/21/04
- Next message: Viktor Popov: "Re: image saving"
- Previous message: Przemo: "chalenge in databse design"
- In reply to: simon: "UPDATETEXT"
- Next in thread: simon: "Re: UPDATETEXT"
- Reply: simon: "Re: UPDATETEXT"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 21 Jul 2004 02:35:02 -0700
Hi
Give an insert_offset value. starting from 0 for inserting to the begining of the text data. In your update statement, replace the first null with 0. Thanks
-- Ibrahim "simon" wrote: > > Declare @oldValue varbinary(16) > Declare @str varchar(8000) > > Select @oldValue =TextPtr(description) From t_narocilnica where ID=1 > > set @str=';new text' > > UPDATETEXT t_narocilnica.description @oldValue NULL NULL @str > > Thiss appends the new text to the old description at the end of the text. > > If I had old description: > > 'old text' > > than I have now: 'old text;new text' > > It always append to the end of the text. > How can I append the new text to the begining, I would like that my result > is: > 'new text;old text' > > Thank you, > Simon > > > >
- Next message: Viktor Popov: "Re: image saving"
- Previous message: Przemo: "chalenge in databse design"
- In reply to: simon: "UPDATETEXT"
- Next in thread: simon: "Re: UPDATETEXT"
- Reply: simon: "Re: UPDATETEXT"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|