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

Re: Ignore where clauses when the value is space

$
0
0

Hi Anusha,

 

There are multiple ways to achieve this.

  1. You can use IF ELSE statement in your code and check the values for val1 and val2 and write separate SELECT statements accordingly.
  2. You can use EXECUTE IMMEDIATE using dynamic SQL statements. Here you can use the string value for the where clause and manipulate the where clause string based on the val1 and val2 values.

 

Regards,

 

Ravi


Viewing all articles
Browse latest Browse all 9165

Trending Articles



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