Quantcast
Channel: OutSystems Community
Viewing all articles
Browse latest Browse all 1476385

[Forums] Advanced Sql: To return all rows when the condition is empty

$
0
0

Actually... 

SELECT {SomeEntity}.* FROM {SomeEntity} WHERE {SomeEntity}.[SomeAttribute] LIKE '%' + @SomeInputParameter + '%'

is what is commonly used... when SomeInputParameter this will become "%%" which matches all possible values. You just need to be aware that you're searching for the value of SomeInputParameter within the contents of SomeAttribute, not for the whole value of SomeAttribute. If SomeInputParameter is "tes" then it would match any of the following values for SomeAttribute: "testing", "hates", "detested". 



Viewing all articles
Browse latest Browse all 1476385

Trending Articles



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