Ver Mensaje Individual
  #4  
Antiguo 13-09-2006
Giniromero Giniromero is offline
Miembro
 
Registrado: may 2003
Ubicación: Madrid
Posts: 296
Reputación: 22
Giniromero Va por buen camino
Hola,

lo primero, gracias por contestar mi duda.

He escrito:

Código SQL [-]
select SubStr(clientes.apelcl, 1, 5) from clientes

al situar el cursor sobre la palabra SubStr me muestra un desplegable que pone:

Cita:
SubStr(Param1: CSTRING(256);Param2: SMALLINT; Param3: SMALLINT)
Al ejecutar el código SQL que comento, me devuelve el siguiente mensaje de error:

Cita:
Invalid token.
invalid request BLR at offset 63.
function SUBSTR is not defined.
module name or entrypoint could not be found.
He intentado hacer lo que me indicó maeyanes de poner:

Código SQL [-]
DECLARE EXTERNAL FUNCTION SUBSTR
  CSTRING(80) CHARACTER SET ISO8859_1,
  SMALLINT,
  SMALLINT
RETURNS CSTRING(80) CHARACTER SET ISO8859_1 FREE_IT
ENTRY_POINT 'IB_UDF_substr' MODULE_NAME 'ib_udf';

pero al ejecutarlo me contesta:

Cita:
This operation is not defined for system tables.
unsuccessful metadata update.
DEFINE FUNCTION failed.
attempt to store duplicate value (visible to active transactions) in unique index "RDB$INDEX_9".
Por si sirbe de algo, para gestionar IB estoy usando IB Expert.

Muchas gracias a todos por vuestro tiempo,

Atentamente
Virginia Romero.
__________________
Sonrie al mundo, y el mundo te sonreirá :)

Última edición por Giniromero fecha: 13-09-2006 a las 11:33:51.
Responder Con Cita