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!

update 2 tables in one statement

Status
Not open for further replies.

abware

Programmer
May 16, 2007
3
why? why this is not working?
I can’t update 2 tables in one statement?

update pd, p
set pd.show = 0 , pd.seashow = 0, p.StockLimited = 0
FROM ProductDetail pd
join Products p on p.itemid = pd.ItemID
where pd.show = 1
and pd.site in (5,2,9)
 

Your syntax is incorrect, looks like WinDoze T-SQL. [3eyes]

Check the fine Oracle Manual for correct syntax. [mad]



----------------------------------------------------------------------------
The person who says it can't be done should not interrupt the person doing it. -- Chinese proverb
 

Ooops, sorry -- Though I was on the Oracle forum. [morning]

----------------------------------------------------------------------------
The person who says it can't be done should not interrupt the person doing it. -- Chinese proverb
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top