ORA-01006

Error: ORA-01006: bind variable does not exist

Causa: A program issued a BIND call for a variable not listed in the associated SQL statement. Only those variables prefixed by either a colon (:) or ampersand (&) in the SQL statement may be referenced in a BIND call, OBIND or OBINDN. This error may also be caused by a mismatch between a Precompiler program and the related library, SQLLIB.

Acción: Modify the BIND call to reference one of the substitute variables specified in the associated SQL statement.

COMENTARIOS:

por Elizabeth A. | 10/11/2006 23:58:08

RE: ORA-01006

!Error!
Se ha producido el siguiente error no tratado en la rutina gaas_hves$mc_saes.BindZoneSql:
ORA-01006: bind variable does not exist
Pongase en contacto con el representante de soporte al cliente.
El error me aparece en un formulario, cuando estoy consultando la información y con un un usuario que no es el administrador.

por Mario P Barboza | 28/01/2009 11:13:22

RE: ORA-01006

Si la bind variable esta encerrada entre apostrofes ( ' ) no es reconocida, ejemplo de esto es
sql_condicion := ' WHERE campo1=:a AND campo2='':b''';
OPEN cRetorno FOR sql_string || pTabla || sql_condicion USING v1, v2;
En este caso no reconocerá la variable :b por estar encerrada entre apostrofes.