Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

inserting data from one table to another

Status
Not open for further replies.

babeo

Technical User
Mar 30, 2000
398
CA
Hi
I have 2 tables(TabA and TabB) link by a common/index field A. I would like to dump the data of TabB, column SmallFieldB(char) onto TabA, column BigFieldA(char) accordingly using the index key to match up the field. I don't want to do data entry (it's huge data), could anyone help me in coding to do this task (I can think of the logic, but not master about the Sybase syntax)

Thanks a lot.
 
For what I've understood this could help.

update TabA
set BigFieldA = SmallFieldB
from TabA, TabB
where TabA.A = TabB.A

Regards,
Roberto
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top