Ver Mensaje Individual
  #6  
Antiguo 09-04-2005
Avatar de Crandel
[Crandel] Crandel is offline
Miembro Premium
 
Registrado: may 2003
Ubicación: Parana, Argentina
Posts: 1.475
Reputación: 23
Crandel Va por buen camino
proba con algo asi:

Código:
CREATE PROCEDURE Cero2Null (VALOR INTEGER) RETURNS (VALOR INTEGER)
AS 
BEGIN
  IF (VALOR = 0) THEN VALOR = NULL;
END^
no es UDF, nunca cree uno, pero creo que te deberia funcionar igual con procedimiento.
Eso si, tambien es mas lento.
__________________
[Crandel]
Responder Con Cita