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 syntax error

Status
Not open for further replies.

RexJacobus

Programmer
Dec 10, 2001
47
NZ
update tblmasteroverrun
set tblmasteroverrun.games_total = tg.total_games
from tbltotalgames tg
where tlbmasteroverrun.uid = tg.uid

I must be thick because I just can't see why this is giving me a syntax error. What am I missing? I've been staring at it for too long.

thx,
jim


 
UPDATE tblmasteroverrun,tbltotalgames
SET tblmasteroverrun.games_total=tbltotalgames.total_games
WHERE tlbmasteroverrun.uid = tbltotalgames.uid

The preceding example shows an inner join that uses the comma operator, but multiple-table UPDATE statements can use any type of join allowed in SELECT statements, such as LEFT JOIN.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top