Cycle de progression Faire (quelque chose qui marche) -> comprendre ce que l’on fait/comment cela marche -> pousser plus loin les notions
| CREATE PROCEDURE INSERTContact(p1 char(255),p2 int) AS INSERT INTO [Contact]([ContactName],[ContactAge]) VALUES(p1,p2); GO |
| PARAMETERS p1 Text ( 255 ), p2 Long; INSERT INTO Contact ( ContactName, ContactAge ) SELECT p1 AS Expr1, p2 AS Expr2; |
| CREATE PROCEDURE UPDATEContact(p1 char(255),p2 int, p3 int) AS UPDATE [Contact] SET [ContactName]=p1,[ContactAge]=p2 WHERE [ID]=p3 GO |
| PARAMETERS p1 Text ( 255 ), p2 Long, p3 Long; UPDATE Contact SET Contact.ContactName = p1, Contact.ContactAge = p2 WHERE (((Contact.[ID])=[p3])); |
| CREATE PROCEDURE DELETEContact(p1 int) AS DELETE FROM [Contact] WHERE [ID]=p1 GO |
| PARAMETERS p1 Long; DELETE Contact.[ID] FROM Contact WHERE (((Contact.[ID])=[p1])); |

| CREATE PROCEDURE SELECTContacts AS SELECT [ID],[ContactName],[ContactAge] FROM [Contact] GO |
| SELECT Contact.[ID], Contact.[ContactName], Contact.[ContactAge] FROM Contact; |
| CREATE PROCEDURE SELECTContact(p1 int) AS SELECT [ID],[ContactName],[ContactAge] FROM [Contact] WHERE [ID]=p1 GO |
| PARAMETERS p1 Long; SELECT Contact.[ID], Contact.[ContactName], Contact.[ContactAge] FROM Contact WHERE (((Contact.[ID])=[p1])); |