what? did you want to append single quotes to front and back?
yep, i tried with '+myString+' but it didn't worked
You need to escape a character
If I'm not mistaken
"\'" + str + "\'"
i need to put the string variable inside a where clause so the variable needs to store the quotes itself
String word = "hello"; String result = "'"+word+"'";
And also escape the quote characters with \
so i should have smtg like .... where customer_name="\'" + myStringVariable + "\'" right?
why we get the result by simple concat only
You sure you are talking about java?
eh... it's a dsl based on java
""" is a syntax error
compiler seems to do it here
Haven't worked with that, but in java syntax concatenating strings would look like that
Обсуждают сегодня