I am trying to use limit with update in mysql but is giving an error
Error: MySQL Error: Incorrect usage of UPDATE and LIMIT
update table1
JOIN table2
ON SUBSTRING_INDEX(table1.HOST, '.',1)= SUBSTRING_INDEX(table2.HOST, '.', 1)
set table1.portalId = table2.portalId
limit 2;