From 704f17441df8ed6590b27bca70932f41e5c3a3c0 Mon Sep 17 00:00:00 2001 From: jf Date: Wed, 18 Feb 2026 10:38:06 +0100 Subject: [PATCH] psql comments --- docs/PostgreSQL/2026-02-17-commandes-utiles.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/docs/PostgreSQL/2026-02-17-commandes-utiles.md b/docs/PostgreSQL/2026-02-17-commandes-utiles.md index 3d26aa8..5462bf7 100644 --- a/docs/PostgreSQL/2026-02-17-commandes-utiles.md +++ b/docs/PostgreSQL/2026-02-17-commandes-utiles.md @@ -12,4 +12,15 @@ SELECT column_name FROM information_schema.columns where table_name = :'TABLE_NA Afficher toutes les tables et leur colonnes avec un début de nom de table : ```sql SELECT table_name, column_name FROM information_schema.columns where table_name like debutnom%; -``` \ No newline at end of file +``` + +## Commenter +[source]: https://www.techonthenet.com/postgresql/comments.php + +### 1. En utilisant `-- Commentaire` + +C'est l'équivalent `#` du BaSH. + +### 2. En utilisant `/* Commentaire */` + +En psql on peut mettre ce type de commentaire partout. Même au milieu d'une commande. Et le commentaire peut être sur plusieurs ligne. \ No newline at end of file