I have to create a prepared statement to fetch data from MqSQL db.
I could not find a way to add order by in preparedstatement
way..
I have append order by info in sql string before creating preparedstatement
.
However client quality tool reported this as an sql injection.Since we are added order by info(ie.asc/desc) from a variable.
Is their any alternative.Could you please help me ? Thanks in advance.