Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document how to handle single quotes in a synapse table/fileview query #423

Closed
ychae opened this issue Sep 6, 2018 · 2 comments
Closed
Assignees

Comments

@ychae
Copy link
Contributor

ychae commented Sep 6, 2018

Need to document how to handle single quotes in a Synapse query. For example, if there is a single quote in the value (like you see in chemical structure names) it needs to be replaced by a double quote:

chemicalStructure = 4'-somethingsomething

would be queried as:

SELECT * FROM syn123 where "chemicalStructure" = '4"-somethingsomething'
@ychae
Copy link
Contributor Author

ychae commented Sep 6, 2018

Also another way is to use two single quotes instead of the double quote

SELECT * FROM syn123 where "chemicalStructure" = '4''-somethingsomething'

@ychae ychae self-assigned this Sep 13, 2018
@ychae ychae assigned kelshmo and unassigned ychae Oct 10, 2018
@kelshmo
Copy link
Collaborator

kelshmo commented Nov 9, 2018

updated!

@kelshmo kelshmo closed this as completed Nov 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants