UPDATE bestall SET view = t1.v, rawview = t1.rv
FROM bestall INNER JOIN beststat as t1
ON bestall.bestid = t1.bestid
this query gives syntax error near
'FROM bestall INNER JOIN beststat as t1 ON bestall.bestid = t1.bestid' at line 3
any reasons?
That isn’t valid MySQL syntax. It is valid in MS SQL Server, however. For MySQL, use:
MySQL requires the update tables to come before the
SETclause. See the MySQLUPDATEsyntax reference for full details.