Sie sind auf Seite 1von 17

Procedimiento con paso de parametros para eliminar una tabla.

USE SIDIM
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author:
<Author,,Name>
-- Create date: <Create Date,,>
-- Description:
<Description,,>
-- =============================================
CREATE PROCEDURE dbo.tbPacienteBaja
(@IdPaciente nchar(20))
AS
BEGIN
DELETE FROM tbPaciente WHERE IdPaciente=@IdPaciente
select * from tbPaciente
END
GO
USE SIDIM
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author:
<Author,,Name>
-- Create date: <Create Date,,>
-- Description:
<Description,,>
-- =============================================
CREATE PROCEDURE tbSistemaEndocrino
(@IdPaciente nchar(20))
AS
BEGIN
DELETE FROM tbSistemaEndocrino WHERE IdPaciente=@IdPaciente
END
GO

SELECT * FROM tbSistemaEndocrino

USE SIDIM
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author:
<Author,,Name>
-- Create date: <Create Date,,>
-- Description:
<Description,,>
-- =============================================
CREATE PROCEDURE tbAbdomen
(@IdPaciente nchar(20))
AS

BEGIN
DELETE FROM tbAbdomen WHERE IdPaciente=@IdPaciente
SELECT * from tbAbdomen
END
GO

USE SIDIM
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author:
<Author,,Name>
-- Create date: <Create Date,,>
-- Description:
<Description,,>
-- =============================================
CREATE PROCEDURE tbAntecedentesFamiliares
(@IdPaciente nchar(20))
AS
BEGIN
DELETE FROM tbAntecedentesFamiliares WHERE IdPaciente=@IdPaciente

END
GO

SELECT * FROM tbAntecedentesFamiliares

USE SIDIM
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author:
<Author,,Name>
-- Create date: <Create Date,,>
-- Description:
<Description,,>
-- =============================================
CREATE PROCEDURE tbSistemaEmatopeyicoLinfatico
(@IdPaciente nchar(20))
AS
BEGIN
DELETE FROM tbSistemaEmatopeyicoLinfatico WHERE
IdPaciente=@IdPaciente
SELECT
END
GO

* FROM tbSistemaEmatopeyicoLinfatico

USE SIDIM
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author:
<Author,,Name>
-- Create date: <Create Date,,>
-- Description:
<Description,,>
-- =============================================
CREATE PROCEDURE tbSistemaNervioso
(@IdPaciente nchar(20))
AS
BEGIN
DELETE FROM tbSistemaNervioso WHERE IdPaciente=@IdPaciente
END
GO

SELECT * FROM tbSistemaNervioso

USE SIDIM
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author:
<Author,,Name>
-- Create date: <Create Date,,>
-- Description:
<Description,,>
-- =============================================
CREATE PROCEDURE tbToraxPulmones
(@IdPaciente nchar(20))
AS
BEGIN

END
GO

DELETE FROM tbToraxPulmones WHERE IdPaciente=@IdPaciente


SELECT * FROM tbToraxPulmones

USE SIDIM
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author:
<Author,,Name>
-- Create date: <Create Date,,>
-- Description:
<Description,,>
-- =============================================
CREATE PROCEDURE tbFuncionesMentales
(@IdPaciente nchar(20))
AS

BEGIN
DELETE FROM tbFuncionesMentales WHERE IdPaciente=@IdPaciente
-- Insert statements for procedure here
SELECT * FROM tbFuncionesMentales
END
GO

USE SIDIM
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author:
<Author,,Name>
-- Create date: <Create Date,,>
-- Description:
<Description,,>
-- =============================================
CREATE PROCEDURE tbInicioPadecimiento
(@IdPaciente nchar(20))
AS
BEGIN
DELETE FROM tbInicioPadecimiento WHERE IdPaciente=@IdPaciente

END
GO

-- Insert statements for procedure here


SELECT * FROM tbInicioPadecimiento

USE SIDIM
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author:
<Author,,Name>
-- Create date: <Create Date,,>
-- Description:
<Description,,>
-- =============================================
CREATE PROCEDURE tbCabeza
(@IdPaciente nchar(20))
AS
BEGIN
DELETE FROM tbCabeza WHERE IdPaciente=@IdPaciente
SELECT * FROM tbCabeza
END
GO
USE SIDIM
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author:
<Author,,Name>
-- Create date: <Create Date,,>
-- Description:
<Description,,>

-- =============================================
CREATE PROCEDURE tbCuello
(@IdPaciente nchar(20))
AS
BEGIN
DELETE FROM tbCuello WHERE IdPaciente=@IdPaciente
END
GO

SELECT * FROM tbCuello

USE SIDIM
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author:
<Author,,Name>
-- Create date: <Create Date,,>
-- Description:
<Description,,>
-- =============================================
CREATE PROCEDURE tbDorsoExtremidades
(@IdPaciente nchar(20))
AS
BEGIN
DELETE FROM tbDorsoExtremidades WHERE IdPaciente=@IdPaciente
END
GO

SELECT * FROM tbDorsoExtremidades

USE SIDIM
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author:
<Author,,Name>
-- Create date: <Create Date,,>
-- Description:
<Description,,>
-- =============================================
CREATE PROCEDURE tbAparatoGenitalMasculino
AS
BEGIN

(@IdPaciente nchar(20))
DELETE FROM tbAparatoGenitalMasculino WHERE IdPaciente=@IdPaciente
SELECT * FROM tbAparatoGenitalMasculino

END
GO

USE SIDIM
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author:
<Author,,Name>
-- Create date: <Create Date,,>
-- Description:
<Description,,>
-- =============================================
CREATE PROCEDURE tbaparatoRespiratorio
(@IdPaciente nchar(20))
AS
BEGIN
DELETE FROM tbaparatoRespiratorio WHERE IdPaciente=@IdPaciente
END
GO

SELECT * FROM tbaparatoRespiratorio

USE SIDIM
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author:
<Author,,Name>
-- Create date: <Create Date,,>
-- Description:
<Description,,>
-- =============================================
CREATE PROCEDURE tbAparatoUrinario
(@IdPaciente nchar(20))
AS
BEGIN
DELETE FROM tbAparatoUrinario WHERE IdPaciente=@IdPaciente
END
GO

SELECT tbAparatoUrinario

USE SIDIM
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author:
<Author,,Name>
-- Create date: <Create Date,,>
-- Description:
<Description,,>
-- =============================================
CREATE PROCEDURE tbAparatoDigestivo
(@IdPaciente nchar(20))
AS
BEGIN

DELETE FROM tbAparatoDigestivo WHERE IdPaciente=@IdPaciente

SELECT * FROM tbAparatoDigestivo


END
GO

USE SIDIM
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author:
<Author,,Name>
-- Create date: <Create Date,,>
-- Description:
<Description,,>
-- =============================================
CREATE PROCEDURE tbAparatoGenitalFemenino
(@IdPaciente nchar(20))
AS
BEGIN
DELETE FROM tbAparatoGenitalFemenino WHERE IdPaciente=@IdPaciente
END
GO

SELECT * FROM

tbAparatoGenitalFemenino

USE SIDIM
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author:
<Author,,Name>
-- Create date: <Create Date,,>
-- Description:
<Description,,>
-- =============================================
CREATE PROCEDURE tbAparatoCardiovascular
(@IdPaciente nchar(20))
AS
BEGIN

DELETE FROM tbAparatoCardiovascular WHERE IdPaciente=@IdPaciente


SELECT * FROM tbAparatoCardiovascular

END
GO

USE SIDIM
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author:
<Author,,Name>
-- Create date: <Create Date,,>
-- Description:
<Description,,>

-- =============================================
CREATE PROCEDURE tbAntecedentesPerinatales
(@IdPaciente nchar(20))
AS
BEGIN

DELETE FROM tbAntecedentesPerinatales WHERE IdPaciente=@IdPaciente


SELECT * FROM tbAntecedentesPerinatales

END
GO

USE SIDIM
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author:
<Author,,Name>
-- Create date: <Create Date,,>
-- Description:
<Description,,>
-- =============================================
CREATE PROCEDURE tbAntecedentesPerinatales
(@IdPaciente nchar(20))
AS
BEGIN
DELETE FROM tbAntecedentesPerinatales WHERE IdPaciente=@IdPaciente
END
GO

SELECT * FROM tbAntecedentesPerinatales

PROCEDIMIENTO PARA ACTUALIZAR DATOS.


USE SIDIM
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author:
<Author,,Name>
-- Create date: <Create Date,,>
-- Description:
<Description,,>
-- =============================================
CREATE PROCEDURE dbo.tbPacientemodifiCAA
(@IdPaciente nchar(20),@No_afiliacion nchar(20),@Nombre
nchar(20))
AS
BEGIN
UPDATE tbPaciente SET No_afiliacion=@No_afiliacion WHERE
IdPaciente=@IdPaciente
UPDATE tbPaciente SET Nombre=@Nombre WHERE IdPaciente=@IdPaciente
SELECT * FROM tbPaciente
END

USE SIDIM
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author:
<Author,,Name>
-- Create date: <Create Date,,>
-- Description:
<Description,,>
-- =============================================
CREATE PROCEDURE tbSistemaEndocrino
(@IdPaciente nchar(20),@Hipofisis nchar(20),@Tiroides nchar(20))
AS
BEGIN
UPDATE tbSistemaEndocrino SET Hipofisis=@Hipofisis WHERE
IdPaciente=@IdPaciente
UPDATE tbSistemaEndocrino SET Tiroides=@Tiroides WHERE
IdPaciente=@IdPaciente
SELECT * FROM tbSistemaEndocrino
END
GO
USE SIDIM
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author:
<Author,,Name>
-- Create date: <Create Date,,>
-- Description:
<Description,,>
-- =============================================
CREATE PROCEDURE tbAntecedentesPerinatales
(@IdPaciente nchar(20),@Hip_Indicida_Embrazo
nchar(20),@Hip_Cronica nchar(20))
AS
BEGIN

UPDATE tbAntecedentesPerinatales SET


Hip_Indicida_Embrazo=@Hip_Indicida_Embrazo WHERE IdPaciente=@IdPaciente
UPDATE tbAntecedentesPerinatales SET Hip_Cronica=@Hip_Cronica WHERE
IdPaciente=@IdPaciente
END
GO

SELECT * FROM tbAntecedentesPerinatales

USE SIDIM
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author:
<Author,,Name>
-- Create date: <Create Date,,>
-- Description:
<Description,,>

-- =============================================
CREATE PROCEDURE tbAntecedentesPersonales
(@IdPacinete nchar(20),@Fiebre_Reumatica
nchar(20),@Hipersencibilidad nchar(20))
AS
BEGIN
UPDATE tbAntecedentesPersonales SET
Fiebre_Reumatica=@Fiebre_Reumatica WHERE IdPacinete=@IdPacinete
UPDATE tbAntecedentesPersonales SET
Hipersencibilidad=@Hipersencibilidad WHERE IdPacinete=@IdPacinete
END
GO

SELECT * FROM tbAntecedentesPersonales

USE SIDIM
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author:
<Author,,Name>
-- Create date: <Create Date,,>
-- Description:
<Description,,>
-- =============================================
CREATE PROCEDURE tbAparatoCardiovascular
(@IdPaciente nchar(20),@Disnea nchar(20),@Dolor_Precordial
nchar(20),@Palpitaciones nchar(20))
AS
BEGIN
UPDATE tbAparatoCardiovascular SET Disnea=@Disnea WHERE
IdPaciente=@IdPaciente
UPDATE tbAparatoCardiovascular SET Dolor_Precordial=@Dolor_Precordial
WHERE IdPaciente=@IdPaciente
UPDATE tbAparatoCardiovascular SET Palpitaciones=@Palpitaciones WHERE
IdPaciente=@IdPaciente
END
GO

SELECT * FROM tbAparatoCardiovascular

USE SIDIM
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author:
<Author,,Name>
-- Create date: <Create Date,,>
-- Description:
<Description,,>
-- =============================================
CREATE PROCEDURE tbAbdomen
(@IdPaciente nchar(20),@Forma nchar(20),@Pared nchar(20),
@Hernias nchar(20),@Higado nchar(20),@Bazo nchar(20))
AS
BEGIN

UPDATE tbAbdomen SET Forma=@Forma WHERE IdPaciente=@IdPaciente


UPDATE tbAbdomen SET Pared=@Pared WHERE IdPaciente=@IdPaciente
UPDATE tbAbdomen SET Hernias=@Hernias WHERE IdPaciente=@IdPaciente
UPDATE tbAbdomen SET Higado=@Higado WHERE IdPaciente=@IdPaciente
UPDATE tbAbdomen SET Bazo=@Bazo WHERE IdPaciente=@IdPaciente

END
GO

SELECT * FROM tbAbdomen

USE SIDIM
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author:
<Author,,Name>
-- Create date: <Create Date,,>
-- Description:
<Description,,>
-- =============================================
CREATE PROCEDURE tbAntecedentesFamiliares
(@IdPaciente nchar(20),@Combe nchar(20),@Neoplasticas
nchar(20),@Diabetes nchar(20))
AS
BEGIN
UPDATE tbAntecedentesFamiliares SET Combe=@Combe WHERE
IdPaciente=@IdPaciente
UPDATE tbAntecedentesFamiliares SET Neoplasticas=@Neoplasticas WHERE
IdPaciente=@IdPaciente
UPDATE tbAntecedentesFamiliares SET Diabetes=@Diabetes WHERE
IdPaciente=@IdPaciente
SELECT * FROM tbAntecedentesFamiliares
END
GO
USE SIDIM
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author:
<Author,,Name>
-- Create date: <Create Date,,>
-- Description:
<Description,,>
-- =============================================
CREATE PROCEDURE tbSistemaEmatopeyicoLinfatico
(@IdPaciente nchar(20),@Anemia nchar(20),@Fenomenos_Hemorragicos
nchar(20))
AS
BEGIN

UPDATE tbSistemaEmatopeyicoLinfatico SET Anemia=@Anemia WHERE


IdPaciente=@IdPaciente

UPDATE tbSistemaEmatopeyicoLinfatico SET


Fenomenos_Hemorragicos=@Fenomenos_Hemorragicos WHERE
IdPaciente=@IdPaciente
SELECT * FROM tbSistemaEmatopeyicoLinfatico
END
GO
USE SIDIM
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author:
<Author,,Name>
-- Create date: <Create Date,,>
-- Description:
<Description,,>
-- =============================================
CREATE PROCEDURE tbSistemaNervioso
(@IdPaciente nchar(20),@Cefalea nchar(20),@Temblores
nchar(20),@Convulciones nchar(20))
AS
BEGIN

UPDATE tbSistemaNervioso SET Cefalea=@Cefalea WHERE


IdPaciente=@IdPaciente
UPDATE tbSistemaNervioso SET Temblores=@Temblores WHERE
IdPaciente=@IdPaciente
UPDATE tbSistemaNervioso SET Convulciones=@Convulciones WHERE
IdPaciente=@IdPaciente
END
GO

SELECT * FROM tbSistemaNervioso

USE SIDIM
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author:
<Author,,Name>
-- Create date: <Create Date,,>
-- Description:
<Description,,>
-- =============================================
CREATE PROCEDURE tbToraxPulmones
(@IdPaciente nchar(20),@Forma_Volumen
nchar(20),@Glandulas_Mamarias nchar(20),@Sonidos_Respiratorios nchar(20))
AS
BEGIN
UPDATE tbToraxPulmones SET Forma_Volumen=@Forma_Volumen WHERE
IdPaciente=@IdPaciente
UPDATE tbToraxPulmones SET Glandulas_Mamarias=@Glandulas_Mamarias
WHERE IdPaciente=@IdPaciente
UPDATE tbToraxPulmones SET
Sonidos_Respiratorios=@Sonidos_Respiratorios WHERE IdPaciente=@IdPaciente
SELECT * FROM tbToraxPulmones

END
GO
USE SIDIM
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author:
<Author,,Name>
-- Create date: <Create Date,,>
-- Description:
<Description,,>
-- =============================================
CREATE PROCEDURE tbFuncionesMentales
(@IdPaciente nchar(20),@Ansiedad nchar(20),@Deprecion
nchar(20),@Orientacion nchar(20))
AS
BEGIN
UPDATE tbFuncionesMentales SET Ansiedad=@Ansiedad WHERE
IdPaciente=@IdPaciente
UPDATE tbFuncionesMentales SET Deprecion=@Deprecion WHERE
IdPaciente=@IdPaciente
UPDATE tbFuncionesMentales SET Orientacion=@Orientacion WHERE
IdPaciente=@IdPaciente
END
GO

SELECT * FROM tbFuncionesMentales

USE SIDIM
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author:
<Author,,Name>
-- Create date: <Create Date,,>
-- Description:
<Description,,>
-- =============================================
CREATE PROCEDURE tbInicioPadecimiento
(@IdPaciente nchar(20),@Inicio_Padecimiento nchar(20),@Astemia
nchar(20),@Adinamia nchar(20))
AS
BEGIN
UPDATE tbInicioPadecimiento SET
Inicio_Padecimiento=@Inicio_Padecimiento WHERE IdPaciente=@IdPaciente
UPDATE tbInicioPadecimiento SET Astemia=@Astemia WHERE
IdPaciente=@IdPaciente
UPDATE tbInicioPadecimiento SET Adinamia=@Adinamia WHERE
IdPaciente=@IdPaciente
END
GO

SELECT * FROM tbInicioPadecimiento

USE SIDIM
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author:
<Author,,Name>
-- Create date: <Create Date,,>
-- Description:
<Description,,>
-- =============================================
CREATE PROCEDURE tbCabeza
(@IdPaciente nchar(20),@Facien nchar(20),@Actitud
nchar(20),@Cabeza nchar(20),@Ojos nchar(20))
AS
BEGIN
UPDATE tbCabeza SET Facien=@Facien WHERE IdPaciente=@IdPaciente
UPDATE tbCabeza SET Actitud=@Actitud WHERE IdPaciente=@IdPaciente
UPDATE tbCabeza SET Cabeza=@Cabeza WHERE IdPaciente=@IdPaciente
UPDATE tbCabeza SET Ojos=@Ojos WHERE IdPaciente=@IdPaciente
END
GO

SELECT * FROM tbCabeza

USE SIDIM
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author:
<Author,,Name>
-- Create date: <Create Date,,>
-- Description:
<Description,,>
-- =============================================
CREATE PROCEDURE tbCuello
(@IdPaciente nchar(20),@Pisocion_Traquea nchar(20))
AS
BEGIN

UPDATE tbCuello SET Pisocion_Traquea=@Pisocion_Traquea WHERE


IdPaciente=@IdPaciente
END
GO

SELECT * FROM tbCuello

USE SIDIM
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author:
<Author,,Name>
-- Create date: <Create Date,,>
-- Description:
<Description,,>
-- =============================================
CREATE PROCEDURE tbDorsoExtremidades
(@IdPaciente nchar(20),@Piel nchar(20),@Culumna nchar(20))

AS
BEGIN

UPDATE tbDorsoExtremidades SET Piel=@Piel WHERE


IdPaciente=@IdPaciente
UPDATE tbDorsoExtremidades SET Culumna=@Culumna WHERE
IdPaciente=@IdPaciente
END
GO

SELECT * FROM tbDorsoExtremidades

USE SIDIM
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author:
<Author,,Name>
-- Create date: <Create Date,,>
-- Description:
<Description,,>
-- =============================================
CREATE PROCEDURE tbaparatoGenitalMasculino
(@IdPaciente nchar(20),@Impotencia
nchar(20),@escurrimiento_Uretral nchar(20))
AS
BEGIN
UPDATE tbaparatoGenitalMasculino SET Impotencia=@Impotencia WHERE
IdPaciente=@IdPaciente
UPDATE tbaparatoGenitalMasculino SET
escurrimiento_Uretral=@escurrimiento_Uretral WHERE IdPaciente=@IdPaciente
SELECT * FROM tbaparatoGenitalMasculino
END
GO
USE SIDIM
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author:
<Author,,Name>
-- Create date: <Create Date,,>
-- Description:
<Description,,>
-- =============================================
CREATE PROCEDURE tbAparatoRespiratorio
(@IdPaciente nchar(20),@Tos nchar(20),@Disfonia
nchar(20),@Espectoracion nchar(20))
AS
BEGIN
UPDATE tbAparatoRespiratorio SET Tos=@Tos WHERE
IdPaciente=@IdPaciente
UPDATE tbAparatoRespiratorio SET Disfonia=@Disfonia WHERE
IdPaciente=@IdPaciente
UPDATE tbAparatoRespiratorio SET Espectoracion=@Espectoracion WHERE
IdPaciente=@IdPaciente

SELECT * FROM

tbAparatoRespiratorio

END
GO
USE SIDIM
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author:
<Author,,Name>
-- Create date: <Create Date,,>
-- Description:
<Description,,>
-- =============================================
CREATE PROCEDURE tbAparatoUrinario
(@IdPaciente nchar(20),@Disuria nchar(20),@Palaquiuria nchar(20)
,@Poliuria nchar(20),@Piuresis nchar(20))
AS
BEGIN

UPDATE tbAparatoUrinario SET Disuria=@Disuria WHERE


IdPaciente=@IdPaciente
UPDATE tbAparatoUrinario SET Palaquiuria=@Palaquiuria WHERE
IdPaciente=@IdPaciente
UPDATE tbAparatoUrinario SET Poliuria=@Poliuria WHERE
IdPaciente=@IdPaciente
UPDATE tbAparatoUrinario SET Piuresis=@Piuresis WHERE
IdPaciente=@IdPaciente
SELECT * FROM tbAparatoUrinario
END
GO
USE SIDIM
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author:
<Author,,Name>
-- Create date: <Create Date,,>
-- Description:
<Description,,>
-- =============================================
CREATE PROCEDURE tbAparatoDigestivo
(@IdPaciente nchar(20),@Agruras nchar(20),@Regurgitaciones
nchar(20),
@Eruptos nchar(20),@Disfagia nchar(20),@Nauseas nchar(20),@Vomito
nchar(20))
AS
BEGIN

UPDATE tbAparatoDigestivo SET Agruras=@Agruras WHERE


IdPaciente=@IdPaciente
UPDATE tbAparatoDigestivo SET Regurgitaciones=@Regurgitaciones WHERE
IdPaciente=@IdPaciente
UPDATE tbAparatoDigestivo SET Eruptos=@Eruptos WHERE
IdPaciente=@IdPaciente

UPDATE tbAparatoDigestivo SET Disfagia=@Disfagia WHERE


IdPaciente=@IdPaciente
UPDATE tbAparatoDigestivo SET Nauseas=@Nauseas WHERE
IdPaciente=@IdPaciente
UPDATE tbAparatoDigestivo SET Vomito=@Vomito WHERE
IdPaciente=@IdPaciente
END
GO

SELECT * FROM tbAparatoDigestivo

USE SIDIM
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author:
<Author,,Name>
-- Create date: <Create Date,,>
-- Description:
<Description,,>
-- =============================================
CREATE PROCEDURE tbAparatoGenitalFemenino
(@IdPaciente nchar(20),@Mendrea nchar(20),@Gestas nchar(20)
,@Partos nchar(20),@Cesarias nchar(20),@Abortos nchar(20))
AS
BEGIN
UPDATE tbAparatoGenitalFemenino
IdPaciente=@IdPaciente
UPDATE tbAparatoGenitalFemenino
IdPaciente=@IdPaciente
UPDATE tbAparatoGenitalFemenino
IdPaciente=@IdPaciente
UPDATE tbAparatoGenitalFemenino
IdPaciente=@IdPaciente
UPDATE tbAparatoGenitalFemenino
IdPaciente=@IdPaciente

SET Mendrea=@Mendrea WHERE


SET Gestas=@Gestas WHERE
SET Partos=@Partos WHERE
SET Cesarias=@Cesarias WHERE
SET Abortos=@Abortos WHERE

SELECT * FROM tbAparatoGenitalFemenino


END
GO