Created
November 2, 2020 13:55
-
-
Save ilhamarrouf/53950189f751b0dd9c12a1c7caf123de to your computer and use it in GitHub Desktop.
Parse string with comma for query where in
This file contains hidden or 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
'1,2'.split(',').map(a => "'" + a.replace("'", "''") + "'").join() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment