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写出代码:The Database Developer at GlobalToyzcreated the following viewCREATE VIEW view_country_shopper ASSELECT cShopperldvFirstNamevLastNamecountryFROM country AS cshopper ASsWHERE ccCount

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

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