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!

Update with select

Status
Not open for further replies.

tommy0123

Technical User
Jan 5, 2006
1
AT
I've tried this update sql-statement with postgres it won't work. With oracle,... it's okay. How I can handle this with postgres?

update person SET (person_id, account, title, firstname, lastname, active) = (select person_pk as id1, uid, titel, vorname, familienname, true from fas.person p where person_pk=1540);
 
I've never done this personally. But I think that the information at: may point you in the right direction. It looks like you want to use FROM which is a non-standard extension of postgres.

The example they have is at the very bottom of the page I've given you above.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top