wood burning stoves*
The moose likes JDBC and the fly likes UPDATE multiple columns with subquery Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "UPDATE multiple columns with subquery" Watch "UPDATE multiple columns with subquery" New topic
Author

UPDATE multiple columns with subquery

Justin Chu
Ranch Hand

Joined: Apr 19, 2002
Posts: 209
    
    1
Suppose I've two tables CUSTOMERHOMEADDRESS and CUSTOMERWORKADDRESS with similar columns.

How do I write one update statement to copy 5-8 columns from CUSTOMERWORKADDRESS into CUSTOMERHOMEADDRESS?

I'd imagine it will take repeated subquery to achieve this:

[ March 06, 2007: Message edited by: Chu Tan ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: UPDATE multiple columns with subquery