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.