Reputation: 33
How do I update the column so first letter of each word is capitalized?
I tried using:
Update COUNTRIES SET COUNTRYNAME=Upper(SUBSTR(COUNTRYNAME, 1, 1))
+SUBSTR(COUNTRYNAME, 2,LENGTH(COUNTRYNAME))
Upvotes: 0
Views: 128
Reputation: 31993
use INITCAP()
Update COUNTRIES SET COUNTRYNAME=INITCAP(COUNTRYNAME)
Upvotes: 3