Quantcast
Channel: SCN : Discussion List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 6412

Insert of special character with SAP HANA Studio

$
0
0

Dear Hana Community,

 

I am having a problem with an insert statement that tries to store a value with a few semicolons into a column of data type NVARCHAR. It looks like the following statement: insert into "SCHEMA"."RS_ORDER" values('014','hostname;schema;port','test1',0,'R')

 

Within the SAP HANA Studio I am using the SQL Console and I am getting constantly error - no matter what I am trying:

1.Execute the statement SET DEFINE OFF before the INSERT-> Seems to be not supported by HANA

2. Using \ delimiter as ,'hostname\;schema\;port'

3. Using " " for the entire value  ,"hostname;schema;port"

4.Using the escape key word like ,'hostname\;schema\;port','test1',0,'R') {escape '\'}

5. Using the sequence '||';'||' instead of the semicolon

 

None of the above solutions worked for me. In other databases some of them seem to be working. It would be great if someone can tell me the right statement on how to insert a value with a semicolon using SQL Console of SPA HANA Studio.

 

Thanks and Best Regards.

Markus


Viewing all articles
Browse latest Browse all 6412

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>