Re: How do I update (append) to a text column?
Posted in 1997
Peter Wages — — source: Informix-list mailing list archive (1991-1998)
You can append using update with dbaccess. It involves a bit of a trick though. See below
begin work;
select batch_typ_cd_desc
from batch_type_codes
where batch_type_code = "#A";
batch_typ_cd_desc Promissory Note (Stafford/PLUS)
select trim(batch_typ_cd_desc)||" Test" col
from batch_type_codes
where batch_type_code = "#A"
into temp t_table with no log;
update batch_type_codes
set (batch_typ_cd_desc ) = ((select col from t_table ))
where batch_type_code = "#A";
select batch_typ_cd_desc
from batch_type_codes
where batch_type_code = "#A";
batch_typ_cd_desc Promissory Note (Stafford/PLUS) Test
rollback work;
Peter Wages EDS