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

Getting the row count for dynamically specified table in a procedure

$
0
0

I have the following code in my procedure:

 

EXEC 'SELECT COUNT(*) INTO'|| V_CNT ||'FROM'|| :V_TBLNAM_IN;

 

:V_TBLNAM_IN is a dynamically specified table name.

 

I get the following error:

 

Could not execute 'CALL "xxx"."xxxxx"( '"TABLE_A"')' in 179 ms 917 µs .

SAP DBTech JDBC: [2048]: column store error: search table error:  [2620] "xxx"."xxxxx": line 10 col 1 (at pos 240): [105] (range 1) NullConversion exception

 

When the code is compiled no error.

 

Any help would be appreciated.

 

Thanks.


Viewing all articles
Browse latest Browse all 8968

Trending Articles



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