Ver Mensaje Individual
  #1 (permalink)  
Antiguo 09/03/2005, 13:20
alfred_garrido
 
Fecha de Ingreso: marzo-2004
Mensajes: 42
Antigüedad: 20 años, 10 meses
Puntos: 0
Ayuda con un Procedimiento

Hola, tengo el siguiente procedimiento:

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,
@PECodPrf,
)
GO

Cómo puedo hacer para que cuando me llegue un 0 en @PECodPrf el procedimiento me guarde un valor NULL?

Gracias,

Alfred