From 9e06f31677cb715fd78429d5f019f5e0a89e479a Mon Sep 17 00:00:00 2001 From: adri Date: Sun, 20 Jan 2019 11:47:27 +0100 Subject: [PATCH] =?UTF-8?q?proc=C3=A9dure=20ListPlat?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- procedureMaison.sql | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/procedureMaison.sql b/procedureMaison.sql index 0136d91..b4a5e22 100644 --- a/procedureMaison.sql +++ b/procedureMaison.sql @@ -71,10 +71,10 @@ SELECT * FROM [ProjetThe].[dbo].[T_repas] Where R_Date>=@dateStart AND R_Date<@d RETURN GO -IF OBJECT_ID ( 'SelectRepaBetweenTwoDateTime', 'P' ) IS NOT NULL - DROP PROCEDURE SelectRepaBetweenTwoDateTime; +IF OBJECT_ID ( 'ListPlat', 'P' ) IS NOT NULL + DROP PROCEDURE ListPlat; GO -CREATE PROCEDURE SelectRepaBetweenTwoDateTime +CREATE PROCEDURE ListPlat @ID_repa int AS SELECT T_plat.ID_plat, T_plat.P_nom, T_plat.P_img, T_plat.ID_typePlat FROM [ProjetThe].[dbo].[T_listPlat] RIGHT JOIN T_plat ON T_listPlat.ID_repa=@ID_repa;