Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个字段 customer.country
我正在尝试更新它,以便国家/地区值的第一个字母为大写。我似乎无法找到这样做的方法。
UPDATE customer SET country = UPPER(SUBSTR(country, 1, 1)) || SUBSTR(country, 2)
你为什么不用substr()得到第一个字母upper()呢?
substr()
upper()
upper(substr(customer.country, 1, 1))||substr(customer.country, 2)