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 Statement

Status
Not open for further replies.

Tim2525

Technical User
Feb 7, 2005
51
US
Hi All,

This should be a very easy one. I'm having trouble getting my update statement to run. I come from an Oracle background so this stuff is still greek to me.

Code:
UPDATE catentry
SET catentry.field4 = 'KM'
From manurel, catentry, catentdesc
WHERE manurel.manunbr IN (2495,1135)
AND manurel.manunbr = catentry.field2  
AND catentdesc .catentry_id = catentry.catentry_id

Your assistance would be most appreciated.

TIA,
T
 
the Update syntax goes like :
UPDATE table_name
SET table_name.column_name=value
WHERE condition

you could probably improvise on this:
update catentry
set catentry.field4 = 'KM'
where catentry.field2 IN
(select catentry.field2
from manurel, catentry, catentdesc
where manurel.manunbr IN (2495,1135) and
manurel.manunbr = catentry.field2 and
catentdesc .catentry_id = catentry.catentry_id)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top