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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

UPDATE problem

Status
Not open for further replies.

piti

Technical User
Apr 12, 2001
627
SK
i was using this code before i went to mysql

UPDATE Strom
SET Strom.Length = Top.Length
FROM
Strom
INNER JOIN Top ON Strom.IdAtr_00 = Top.IdAtr_00

this doesn't seem to be correct update syntax for mysql, then i'm getting error when running this code:

You have an error in your SQL syntax near 'FROM Strom INNER JOIN Top ON Strom.IdAtr...

table and column names are correct

anyone here who knows how to do the same on mysql?
thanks
 
try
UPDATE Strom
SET Strom.Length = Top.Length
FROM
Top
where Strom.IdAtr_00 = Top.IdAtr_00
John Fill
1c.bmp


ivfmd@mail.md
 
as well as my code, this also doesn't work

i think the FROM clause in UPDATE cannot work as it is not mentioned in the documentation
am i right?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top