The error in the statement is that there is no space between 'view_country_shopper' and 'SET'. Additionally, the values for vFirstName and country are not separated by a comma. Lastly, the equals sign in 'cCountryld—'001' is a dash instead of an equals sign.

The corrected statement would be:

UPDATE view_country_shopper SET vFirstName='Smith', country='US' WHERE cCountryld='001';

This statement will update the first name to 'Smith' and the country to 'US' for all shoppers in the view_country_shopper view where the country code is '001'.

MySQL View Update Error: Correcting Syntax for Modifying Data

原文地址: https://www.cveoy.top/t/topic/ojgp 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录