UPDATE dondathang
SET noigiaohang=diachi
FROM khachhang
WHERE dondathang.makhachhang=khachhang.makhachhang AND noigiaohang IS NULL;
I have a SQL code like above, but this is the error.
syntax error 'from' identifier is not valid input at this position.
What's wrong with my code?