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
Post a Comment