尝试更新表,以便将字段的内容更改为大写。
UPDATE `schools` SET `postcode` =
UPPER(
(SELECT `postcode` FROM `schools` WHERE 1)
)
试过这个
UPDATE `schools` SET `postcode` =
UPPER(
SELECT `postcode` FROM (SELECT * FROM `schools`) AS x WHERE `postcode`!=''
) WHERE 1
我知道这是可能的,但不能改变这种语法