Ver Mensaje Individual
  #3 (permalink)  
Antiguo 09/03/2005, 15:45
Avatar de Mithrandir
Mithrandir
Colaborador
 
Fecha de Ingreso: abril-2003
Mensajes: 12.106
Antigüedad: 21 años, 9 meses
Puntos: 25
CREATE Procedure Personas_Insertar
@PENIFPer char(9),
@PEApe1 char(30),
@PEApe2 char(30),
@PECodPrf int,
AS
Insert Into Persones(
PENIFPer,
PEApe1,
PEApe2,
PECodPrf
)
Values(
@PENIFPer,
@PEApe1,
@PEApe2,
IsNull(@PECodPrf, 0)
)

Auque la manera mas ortodoxa (y de hecho mas efectiva) sería que en la tabla agregues un valor por default (el 0) para ese campo y te olvides de ello en el resto de tu aplicacion
__________________
"El hombre, en su orgullo, creó a Dios a su imagen y semejanza."
Friedrich Nietzsche

Última edición por Mithrandir; 09/03/2005 a las 15:47