Reputation: 99
I'm trying to use LEN() to measure text strings that can be in various languages. The idea would be to use it as a constraint for comments that are under a certain length.
I'm running into an issue where if the language is not English, len() is not calculating a length.
Is there anyway around this? Is there some other function that can be used to figure out how long a string is?
Upvotes: 1
Views: 87
Reputation: 45096
Returns the correct answer for me
select 'len gt 60'
where len('นี่คือการทดสอบ ฟังก์ชั่น ความยาว เมื่อ มีมากกว่า หกสิบ ตัวอักษร ในสายที่ไม่ได้รับ การบันทึกโดย ฟังก์ชั่น ความยาว') >= 60
Upvotes: 1