View Categories

Premier pas – Ecriture – Tableau de saisie

Comment utiliser le tableau de saisie #

Pour la création d’un tableau de saisie, nous :

  • Appliquerons le script sur la base de données Datawarehouse via un éditeur SQL (comme MSSMS).
USE [Datawarehouse]
GO
/****** Object: Table [dbo].[Wiki-PP-Objets] Script Date: 05/06/2025 15:38:05 ******/
DROP TABLE IF EXISTS [dbo].[Wiki-PP-Objets]
GO
/****** Object: Table [dbo].[Wiki-PP-Objets] Script Date: 05/06/2025 15:38:05 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[Wiki-PP-Objets](
[IdObjet] [nvarchar](80) NULL,
[NomObjet] [nvarchar](50) NULL,
[FamilleObjet] [nvarchar](50) NULL,
[DescriptionObjet] [nvarchar](255) NULL
) ON [PRIMARY]
GO
INSERT [dbo].[Wiki-PP-Objets] ([IdObjet], [NomObjet], [FamilleObjet], [DescriptionObjet]) VALUES (N'OB001', N'Clé', N'Porte', N'Outil pour ouvrir une porte')
GO
INSERT [dbo].[Wiki-PP-Objets] ([IdObjet], [NomObjet], [FamilleObjet], [DescriptionObjet]) VALUES (N'OB002', N'Charnière', N'Porte', N'Objet permettant de lier la porte au montant')
GO
INSERT [dbo].[Wiki-PP-Objets] ([IdObjet], [NomObjet], [FamilleObjet], [DescriptionObjet]) VALUES (N'OB003', N'Clé', N'Voiture', N'Outil pour démarrer une voiture')
GO
INSERT [dbo].[Wiki-PP-Objets] ([IdObjet], [NomObjet], [FamilleObjet], [DescriptionObjet]) VALUES (N'OB004', N'Rétroviseur', N'Voiture', N'Objet pour avoir une vue arrière')
GO
INSERT [dbo].[Wiki-PP-Objets] ([IdObjet], [NomObjet], [FamilleObjet], [DescriptionObjet]) VALUES (N'OB005', N'Pince', N'Cheveux', N'Accessoire pour attacher les cheveux')
GO
INSERT [dbo].[Wiki-PP-Objets] ([IdObjet], [NomObjet], [FamilleObjet], [DescriptionObjet]) VALUES (N'OB006', N'Pince', N'Electricité', N'Outil pour manipuler des fils électriques')
GO
INSERT [dbo].[Wiki-PP-Objets] ([IdObjet], [NomObjet], [FamilleObjet], [DescriptionObjet]) VALUES (N'OB007', N'Marteau', N'Construction', N'Outil pour enfoncer des clous')
GO
INSERT [dbo].[Wiki-PP-Objets] ([IdObjet], [NomObjet], [FamilleObjet], [DescriptionObjet]) VALUES (N'OB008', N'Marteau', N'Musique', N'Instrument de musique (marteau de piano)')
GO
INSERT [dbo].[Wiki-PP-Objets] ([IdObjet], [NomObjet], [FamilleObjet], [DescriptionObjet]) VALUES (N'OB009', N'Règle', N'Mesure', N'Outil pour mesurer des distances')
GO
INSERT [dbo].[Wiki-PP-Objets] ([IdObjet], [NomObjet], [FamilleObjet], [DescriptionObjet]) VALUES (N'OB010', N'Règle', N'Ecole', N'Instrument pour tracer des lignes droites')
GO
INSERT [dbo].[Wiki-PP-Objets] ([IdObjet], [NomObjet], [FamilleObjet], [DescriptionObjet]) VALUES (N'OB011', N'Balance', N'Cuisine', N'Appareil pour peser des ingrédients')
GO
  • Utiliserons la requête suivante enregistrée sous le nom : Wiki-PP-Tableau de saisie-01.
Select
Datawarehouse.dbo.[Wiki-PP-Objets].IdObjet,
Datawarehouse.dbo.[Wiki-PP-Objets].NomObjet,
Datawarehouse.dbo.[Wiki-PP-Objets].FamilleObjet,
Datawarehouse.dbo.[Wiki-PP-Objets].DescriptionObjet
From
Datawarehouse.dbo.[Wiki-PP-Objets]

Retour en haut