Just used some time to figure this out and think that the accepted answer is a bit wrong, since the JDBC query sampler has two types of result variables.
Those that you specify in the Variable names field table for individual columns returned by your query, and you can access them by saying columnVariable_{index} .
The one you specify in the Result variable name contains the entire set of results, and in practice it is a list of maps for the values. The above syntax will obviously not work in this case.
source share