Re: Text column copy across tables
- From: Luc <dba_azvub@xxxxxxxxxxx>
- Date: 26 May 2008 11:10:23 GMT
Manish <manish.minni.m@xxxxxxxxx> wrote:
Hi
I have two tables with text columns. I wish to update text column in
existing rows in TABLE1 using data present in the text column of a
corresponding row in TABLE2.
(The row in TABLE2 can be selected without referring to the text
column values)
Sybase ver is 12.5.3
BTW, I have read some of writetext & readtext in the manual, but it
seems very complex, and if I have to use it, can someone give me a
small example.
You can use a normal update statement.
I tried :
(22) create table t(i int, t text)
(23) create table s(i int, t text)
(24) insert t values (1, 'abc')
(25) insert s values (1, 'efg')
(26) update t set t.t = s.t from t, s where t.i = s.i
(27) select * from t
Don't forget to set textsize if datalength of the textfield
is larger dan 32768.
Luc.
.
- Follow-Ups:
- Re: Text column copy across tables
- From: Manish
- Re: Text column copy across tables
- Prev by Date: Re: Error 2580: unexpected key pointer to an overflow data page
- Next by Date: ct_get_data() fails
- Previous by thread: Error 2580: unexpected key pointer to an overflow data page
- Next by thread: Re: Text column copy across tables
- Index(es):
Relevant Pages
|