Quantcast
Channel: SCN : Discussion List - SAP HANA and In-Memory Computing
Viewing all articles
Browse latest Browse all 5653

Insert into table fails Using XSJS

$
0
0

Hello Experts,

 

I am using following code to to insert data in an table. But this gives error. 

 

var conn = $.db.getConnection();  
var pstmt = conn.prepareStatement('insert into \"SCHEMANAME.TABLENAME\" values(\'XXX\',\'20121006\',\'185712\', 12.0)');  

var rs = pstmt.execute(); 

 

 

Same insert statement works fine from SQL console.

Question1: How can I fix this error?

Question2: How can I capture the exception ?

 

Please help.

 

Regards,

Atanu


Viewing all articles
Browse latest Browse all 5653

Trending Articles



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