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

Passing Parameter to $$.hdb.Connection.executeQuery in a variable

$
0
0

Hello,

 

I would like to pass the parameters as a variable as these are dynamic values. For example,

 

var sQuery = 'SELECT * FROM <TABLE> WHERE <col1>=? AND <col2> = ? and <col3>=?'

 

var aValues = ['value1, value2, value3']

 

var oConnection = $.hdb.getConnection();

oConnection.executeQuery(sQuery , aValues ); 

 

This gives me an error "Parameter 1 is not of type that can be processed!"

 

Best Regards

Srini


Viewing all articles
Browse latest Browse all 6412

Trending Articles



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