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

Prepared statement with named parameter

$
0
0

I am testing prepared statements from Eclipse SQL Console and using JDBC or Python HANA hdb connectors.

 

Here is one like example, works fine:

 

select top ? * from test.employees where emp_no > ?

 

Reading prepared statement paramter metadata description in HANA Command Network Protocol Specification, section 2.7.29 PARAMETERMETADATA, pg. 42, it seems that parameters can be also named, ie. parameter name can be supplied, so something like this should work:

 

select top #top * from test.employees where emp_no > #emp_number

 

Is it possible to specify parameter names in prepared statements and using which syntax ? I could not find any example.


Viewing all articles
Browse latest Browse all 6412

Trending Articles



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