Reputation: 151
I have a jdbc request in jmeter where i am searching user data from the table.But data shows multiple records so i need to use order by latest updated date.
SQL is working fine but display multiple record,how can i use
SELECT CREATION_DATE,PROCESS_FLAG FROM
CUST where ORDER_NUMBER =? order by
LAST_UPDATE_DATE desc;
because it is giving me error invalid character
while trying using jmeter
Upvotes: 1
Views: 485
Reputation: 168082
It is hard to guess what's wrong without seeing request and response details and knowing what database and which JDBC driver you're using.
Try the next tips:
${OrderID}
variable value using Debug SamplerUpvotes: 1
Reputation: 58772
JMeter doesn't allow to use ;
sign at the end of JDBC Request select statement.
Do not enter a trailing semi-colon.
Just remove last character and SQL will be executed wìthout error.
Upvotes: 1