Previous Topic: -301 - PREPARE OF SELECT REJECTED - CURSOR cursor_name IN OPEN STATENext Topic: -303 - STATEMENT-NAME OF CURSOR cursor_name NOT PREPARED SELECT STATEMENT


-302 - INVALID USE OF PARAMETER MARKER

Explanation

The SQL statement contains parameter markers (question marks) in the select list. Parameter markers are not allowed in the select list.

Example: select ? from customer;

The SQLSTATE that equates to this SQL return code is 07S02.

User Response

Remove the parameter markers from the select list.