Quantcast
Channel: SCN: Message List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 9165

Re: Sequence nextval supported in prepared statements?

$
0
0

Hi Lars,

 

Thanks very much for putting me right there.

 

For anyone else having this issue be aware (at least in my experience) that I had to provide both the schema and the full package path of the sequence in the INSERT.  Note the schema and package path in double quotes ("), and schema, package path and nextval seperated by period.  For example:

 

 

query = 'INSERT INTO "abc.def.data::log" values("<SCHEMA>"."abc.def.data::logId".nextval,?,?,?,?,?,?,?,?,?,?,?,?,?)';


Viewing all articles
Browse latest Browse all 9165

Trending Articles



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