FTP | CCD | Buscar | Trucos | Trabajo | Foros |
|
Registrarse | FAQ | Miembros | Calendario | Guía de estilo | Temas de Hoy |
|
Herramientas | Buscar en Tema | Desplegado |
#1
|
||||
|
||||
Error en Stored Procedure en InterBase
Hola Amigos,
Tengo el siguiente 'Stored Procedure': Me dá un error si ninguno de los 'Select' encuentra un registro apropiado y guarda su valor en NAME_SP. Llamo a este procedimiento desde un Select de un DBGrid, y si abro el Form y no encuentra ningún registro en el Select del Stored Procedure me da un error y no se abre el Form. Lo que me gustaría es que devolviera '? ? ? ? ?' en NAME_SP si ninguno de los Select encuentra nada. Algo así como: pero este procedimiento no funciona correctamente. Algo debo de estar haciendo mal, claro. Gracias por vuestra ayuda. |
#2
|
|||
|
|||
Hola .
A riesgo de equivocarme, que valor quisiareas que retorne tu SP si NAME_SP es nulo? Cita:
Saludos. |
#3
|
||||
|
||||
Precisamente el valor que quiero que tome es '? ? ? ? ?' (Cinco interrogaciones separadas por un espacio).
Si inicializo la variable en no me funciona correctamente ya que al parecer el 'Select' a continuación si no encuentra nada dá el valor 'Null' a NAME_SP, por lo que entiendo que la comprobación de si el valor es nulo debe de ser después del Select. Esa es precisamente la duda que tengo y que no logro resolver. Un saludo |
#4
|
|||
|
|||
Hola buenas ...
... has probado a hacerlo asi?
Cita:
ánimos
__________________
Ánimos. |
#5
|
|||
|
|||
Perdona, me he equivocado, el ROW_COUNT se escibe asi y no como le he puesto antes ROWCOUNT. El ROW_COUNT va con guión en medio.
__________________
Ánimos. |
|
|
|