sql - How to get the length of chineses string in Teradata? -


i count total number of string in chinese, , values may include numbers or english alphbet. i've used length() function in sql, 1 chinese word take 2 bytes.

 ex. length('測試test')=8, expected answer:6 (x)  length('test')=4, expected answer:4 (o)  

so, how can right length of string if english, numbers, , chinese included?


Comments

Popular posts from this blog

php - trouble displaying mysqli database results in correct order -

depending on nth recurrence of job in control M -

sql server - Cannot query correctly (MSSQL - PHP - JSON) -