給你一張表 Users ,這張表記載了很多 user 的名字,但是也包含很多的大小寫轉換錯誤,現在希望你撰寫一個 SELECT 語法,要顯示符合規範的名字。
Table: Users
+----------------+---------+ | Column Name | Type | +----------------+---------+ | user_id | int | | name | varchar | +----------------+---------+ user_id is the primary key for this table. This table contains the ID and the name of the user. The name consists of only lowercase and uppercase characters.
規範如下:
首字母大寫
其餘的小寫
Example 1:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Input: Users table: +---------+-------+ | user_id | name | +---------+-------+ | 1 | aLice | | 2 | bOB | +---------+-------+ Output: +---------+-------+ | user_id | name | +---------+-------+ | 1 | Alice | | 2 | Bob | +---------+-------+