Mengubah huruf pertama setiap kata menjadi kapital (Title Case). Kata dipisahkan oleh karakter non-alphanumeric.
textDiperbarui: 12 Jul 2026INITCAP(string)String yang akan dikonversi ke Title Case
1 SELECT INITCAP(hello world);
Mengubah ke Title Case.
| initcap |
|---|
| Hello World |
1 SELECT 2 INITCAP(first_name) || || INITCAP(last_name) AS formatted_name 3 FROM users 4 WHERE first_name = LOWER(first_name);
Memformat nama yang tersimpan dalam lowercase.
| formatted_name |
|---|
| John Doe |
| Jane Smith |
1 SELECT 2 INITCAP(jOHN DOE) AS from_mixed, 3 INITCAP(JOHN DOE) AS from_upper, 4 INITCAP(john-doe) AS with_hyphen;
INITCAP menormalkan case apapun input-nya.
| from_mixed | from_upper | with_hyphen |
|---|---|---|
| John Doe | John Doe | John-Doe |
Sudah paham INITCAP? Latih langsung di browser
Latihan interaktif, langsung di browser.