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

Re: syntax error for dynamic column for update query

$
0
0

Hi,

 

you do not have to enclose the whole statement in double quotes. What I meant and described is for the case that your values set and compared against the columns are character based that they should be enclosed in single quotes.

For example if you compare the value 'abc' in a where clause against a character based column it should like '... where mycolumn = ''' || :lv_value || ''''.

 

Regards,

Florian

 

PS: As you are using dynamic SQL you should always keep in mind to check your inputs to avoid SQL injections.


Viewing all articles
Browse latest Browse all 9165

Trending Articles



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