Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Sybase > Re: Text column...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 3 Topic 2475 of 2515
Post > Topic >>

Re: Text column copy across tables

by Luc <dba_azvub@[EMAIL PROTECTED] > May 26, 2008 at 11:10 AM

Manish <manish.minni.m@[EMAIL PROTECTED]
> 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.
 




 3 Posts in Topic:
Text column copy across tables
Manish <manish.minni.m  2008-05-26 00:42:40 
Re: Text column copy across tables
Luc <dba_azvub@[EMAIL   2008-05-26 11:10:23 
Re: Text column copy across tables
Manish <manish.minni.m  2008-05-27 22:28:30 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu Aug 21 21:51:46 CDT 2008.