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!

Updating two colums in diffirent tables.

Status
Not open for further replies.

countdrak

Programmer
Jun 20, 2003
358
US
I am trying to update two seperate columns in two seperate tables. I am not quite sure if this is even possible, but I keep getting an error.

Code first.

Code:
UPDATE mfTableLines
SET	l.Time = 12,
	r.Status = 'C'
FROM mfTableLines l, mfTableRow r
WHERE l.item_no = '00230'
AND   l.lineID = r.LineID

Can I update two seperate columns like i have done above? I keep getting an "Cannot use the column prefix 'l'." IS there a diffirent syntax that I can use?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top