-125   AN INTEGER IN THE ORDER BY CLAUSE DOES NOT IDENTIFY A COLUMN OF THE RESULT

Explanation

The ORDER BY clause in the statement contains a column number that is either less than one, or greater than the number of columns of the result table (the number of items in the SELECT clause).

System action

The statement cannot be processed.

Programmer response

Correct the syntax of the ORDER BY clause such that each column identifier properly denotes a column of the result table.

SQLSTATE

42805