Skip to Main Content

SQL & PL/SQL

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!

dbms_lob.substr ( difference with simple function substr)

apollon27Sep 22 2013 — edited Sep 22 2013

Hello  suppose the following query

SELECT employee_id, resume,

              DBMS_LOB.SUBSTR (resume, 5, 18)  lob_substr,

              substr(resume, 5, 18)   sub   

FROM employees

WHERE employee_id = 170;

resume is of CLOB datatype

and for employee_id 170 is 'Date of Birth: 1 June 1956 Resigned: 30 September 2000'

the results are:

sub

-----------------------------------------------------------------------------

' of Birth: 1 June '

I understand that.

I cannot understand why  DBMS_LOB.SUBSTR (resume, 5, 18)  gives as a result

'June '

Thank you.

What is the difference?

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 20 2013
Added on Sep 22 2013
1 comment
673 views