Skip to Content

How to append a String Data to Nclob column in HANA Data Base using Sql Query

hi ,

I have a column named remark of type NCLOB(String without limitation) , in a table CALL_REGISTER where call_number is the key.

we have a requirement that remarks entered by End User should not over write existing data, instead it should get appended.

I tried Using Query UPDATE CALL_REGISTER SET REMARK = REMARK + 'Current End User Remark' WHERE CALL_NUMBER = '123123123'

But am getting error as

SAP DBTech JDBC: [266]: inconsistent datatype: the expression has incomputable datatype: NCLOB is invalid for addition operator: line 1 col 56 (at pos 55)

Kindly help to resolve this.

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Nov 26, 2019 at 06:22 AM

    That's no possible in HANA SQL/SQLScript.

    You need to construct a new lob (byte array) and overwrite the existing value in your client application where you process the remark.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.