Skip to Main Content

Database Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

LENGTHB function in 11g

1062396Feb 19 2014 — edited Feb 25 2014

We were using length and lengthB function in 10g. In below given statement E is Greek character. Below RPAD is returning different result on 10g and 11g which gives error of size.

10g = RPAD (trim('E'),(lengthb(trim('E'))-length(trim('E')))+4, '-') as rpadstr = 4

11g = RPAD (trim('E'),(lengthb(trim('E'))-length(trim('E')))+4, '-') as rpadstr = 5

On 10g

lengthb(trim('E') = 2

lengthb(trim('E') = 1

On 11g

lengthb(trim('E') = 2

lengthb(trim('E') = 1

Can you please help to return same result as 10G?

Thanks in advance.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 25 2014
Added on Feb 19 2014
6 comments
2,919 views