Skip to content

Instantly share code, notes, and snippets.

@ilhamarrouf
Created November 2, 2020 13:55
Show Gist options
  • Save ilhamarrouf/53950189f751b0dd9c12a1c7caf123de to your computer and use it in GitHub Desktop.
Save ilhamarrouf/53950189f751b0dd9c12a1c7caf123de to your computer and use it in GitHub Desktop.
Parse string with comma for query where in
'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