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

Re: Dynamic column list in contains-statement

$
0
0

Happy to have you make your own decisions about your application design.


The easy answer for your simple question would of course be available in the SQL syntax reference...

 

You could build dynamic SQL in a scripted calc.view or a SQLScript procedure to build the CONTAINS() expression based on your parameters.

And there's your code smell: dynamic SQL typically means loosely coupled application logic to data, "generic" data models and worse than possible performance. It tends to make applications harder to maintain and often blocks the usage of certain DBMS features.

 

So, nope, the design smell is already there.

 

- Lars


Viewing all articles
Browse latest Browse all 9165

Trending Articles



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