FTP | CCD | Buscar | Trucos | Trabajo | Foros |
|
Registrarse | FAQ | Miembros | Calendario | Guía de estilo | Temas de Hoy |
|
Herramientas | Buscar en Tema | Desplegado |
#1
|
|||
|
|||
Comparar con Null
Tengo la siguiente consulta:
Lo que ocurre es en el campo NUMERO tengo algunos registros que su valor es nulo y no me los saca. No hace la comparativa "and H1.NUMERO = H.NUMERO" y el resultado es 0. ¿Como lo puedo solucionar? |
#2
|
||||
|
||||
__________________
self.free; |
#3
|
|||
|
|||
No he comentado que trabajo con FB1.5 y la funcion isnull me da error.
Function unknown. ISNULL. |
#4
|
||||
|
||||
coalesce
Código:
SELECT COALESCE(NOMBRE,'NO REGISTRADO') FROM ESTUDIANTE SWHERE CODIGO = :C' |
#5
|
|||
|
|||
Funciona,
Gracias |
|
|
Temas Similares | ||||
Tema | Autor | Foro | Respuestas | Último mensaje |
Fecha null en sql | pablomg8 | SQL | 3 | 24-09-2008 10:00:31 |
cambiar campo null a not null | andressanchez | Firebird e Interbase | 8 | 18-09-2006 22:00:09 |
Null y UDF | ARPE | Firebird e Interbase | 0 | 08-09-2004 10:56:20 |
Null y Delphi 7 | buitrago | Varios | 2 | 08-12-2003 17:59:40 |
campo null | anay | Varios | 1 | 14-11-2003 19:49:13 |
|