procédure ListPlat

This commit is contained in:
adri 2019-01-20 11:47:27 +01:00
parent 6be830de85
commit 9e06f31677
1 changed files with 3 additions and 3 deletions

View File

@ -71,10 +71,10 @@ SELECT * FROM [ProjetThe].[dbo].[T_repas] Where R_Date>=@dateStart AND R_Date<@d
RETURN RETURN
GO GO
IF OBJECT_ID ( 'SelectRepaBetweenTwoDateTime', 'P' ) IS NOT NULL IF OBJECT_ID ( 'ListPlat', 'P' ) IS NOT NULL
DROP PROCEDURE SelectRepaBetweenTwoDateTime; DROP PROCEDURE ListPlat;
GO GO
CREATE PROCEDURE SelectRepaBetweenTwoDateTime CREATE PROCEDURE ListPlat
@ID_repa int @ID_repa int
AS 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; 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;