cancel
Showing results for 
Search instead for 
Did you mean: 

Escaping SQL character to avoid "incorrect syntax near" error

DiarmuidCorey
Level 2
Hi 

I am having difficulty getting BP to extract an item using SQL

"SELECT * FROM #Input WHERE [DisplayName] = '10. Folder - 'Triage' ' "

the folder 'Triage' has a single ' at the end of the word, I believe this is causing the issue but I cannot escape it successfully, any ideas would be great!
1 REPLY 1

PabloSarabia
Level 11
Hello

Try using a double ', like that:

"SELECT * FROM #Input WHERE [DisplayName] = '10. Folder - ''Triage'' ' "



Bye 🙂