Collegues, please help me with sql in Groovy. In my SOAP UI groovy script i have sql query:
sql.eachRow('select top 1 '+
'Country, '+
'from dbo.Address where UPPER(Country) = "JAPAN" ORDER BY NEWID()')
Everything was fine till i work without quotes in where clause. After I add UPPER(Country) = "JAPAN" i receive an axception:
com.microsoft.sqlserver.jdbc.SQLServerException: Ivalid column name 'Japan'
How to rewrite the query with quotes in where clause?
Or use a different quote character in the Groovy code:
or multi-line strings:
or multi-line strings with a margin: