Partial update of LOB datatypes

The rs_updatetext form of the applied subcommand supports the partial update of large object datatypes. Partial update lets you directly insert a character string or overwrite an existing character string of a table column without issuing delete and replace commands, as would happen in a full update.

rs_updatetext syntax

{distribute | _ds} command_tags {applied | _ap} 'table'.rs_updatetext
{partialupd | _pu} [{first | _fi}] [last] [{changed | _ch}] [with log]
[{withouttp | _wo}]
[{offset | _os}=offsetvalue {deletelen | _dln}=deletelength]
[{textlen | _tl}=length] text_image_column

Parameters

Examples

A partial update transaction that contains the commands begin transaction, rs_update, rs_updatetext, and commit transaction:

distribute @origin_qid=~,A{0x}0000000036e
800000011000700000007000036e8000000110001000000100002,
@origin_time=~*620080317 18:01:40:653,@tran_id=~,;
{0x}72616d6c696e647361792e6d7332303035766d31000486020
000 begin transaction  for ~"(qafuser osid 52
distribute @origin_qid=~,A{0x}0000000036e
800000011000700000008000036e8000000110001000000100002,
@origin_time=NULL,@tran_id=~,;{0x}72616d6c696e6473617
92e6d7332303035766d31000486020000 applied
owner=~"$dbo ~"+qaf_oldlob.rs_update yielding
before ~$%pkey=1,~$)text_col=hastext always_rep
,~$*ntext_col=hastext always_rep ,~$*image_col=hastext
always_rep _isbinary  after 
distribute @origin_qid=~,A{0x}0000000036e
800000011000700000009000036e8000000110001000000100002,
@origin_time=~*620080317 18:01:40:653,@tran_id=~,;
{0x}72616d6c696e647361792e6d7332303035766d31000486020
000 applied  owner=~"$dbo ~"+qaf_oldlob.rs_updatetext
partialupd  first  last changed with log offset=10
deletelen=10 textlen=20~$*ntext_col=~8!!5
{0x}0062006200620062006200620062006200620062
distribute @origin_qid=~,A{0x}0000000036e
80000001100080000000a000036e8000000110001000000100002,
@origin_time=NULL,@tran_id=~,;{0x}72616d6c696e6473617
92e6d7332303035766d31000486020000 commit transaction

Limitation