Created
July 5, 2019 18:31
-
-
Save ellor1138/a83071339224d9f19f176933a11f5be0 to your computer and use it in GitHub Desktop.
Find value in comma delimited list (SQL)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
loc.query = New Query(datasource=get("dataSourceName")); | |
loc.query.setSQL( | |
SQL="SELECT column FROM table WHERE (',' + RTRIM(columns) + ',') LIKE '%,#value#,%'" | |
); | |
loc.query = loc.query.execute().getResult();; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment