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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

copy info from one field and append to another

Status
Not open for further replies.

sammybee77

Technical User
Jun 18, 2001
98
GB
Hi

I am looking to write a script that will take the information from one field and add it to the information already held in a comments(not overwrite it) - Any idea how I would do this?

Many thanks

Sam
 
:block1.field1 := :block1.field1 || :block1.field2;
 
Update mytable set comment = comment||' '||otherfield I tried to remain child-like, all I acheived was childish.
 
Is it possible to do an update like this where I take the data from one table and append to the data in another table?

Many thanks

Sam
 
update table1 t1 set column1 =
(select t1.column1||t2.column2
from table2 t2
where t1.key = t2.key)
where exists
(select t1.column1||t2.column2
from table2 t2
where t1.key = t2.key)

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top