-20258   INVALID USE OF INPUT SEQUENCE ORDERING

Explanation

The ORDER BY clause specifies INPUT SEQUENCE, and the FROM clause of the fullselect does not specify an INSERT or MERGE statement. If the input data is not specified using a VALUES clause, or a fullselect with an ORDER BY clause on the outermost fullselect, then the ORDER BY INPUT SEQUENCE clause has no effect.

System action

The statement cannot be processed.

Programmer response

Specify a valid sort key or ensure that the input to the INSERT is a VALUES clause or an ordered fullselect.

SQLSTATE

428G4