Documentation PostgreSQL 8.4.7
1627 pages
Français

Documentation PostgreSQL 8.4.7

Le téléchargement nécessite un accès à la bibliothèque YouScribe
Tout savoir sur nos offres
1627 pages
Français
Le téléchargement nécessite un accès à la bibliothèque YouScribe
Tout savoir sur nos offres

Description

Documentation PostgreSQL 8.4.8
The PostgreSQL Global Development Group Documentation PostgreSQL 8.4.8
The PostgreSQL Global Development Group
Copyright © 1996-2009 The Global Development Group
Legal Notice
PostgreSQL™ is Copyright (c) 1996-2009 by the PostgreSQL Global Development Group and is distributed under the terms of the license of the University of Ca-
lifornia below.
Postgres95™ is Copyright (c) 1994-5 by the Regents of the University of California.
Permission to use, copy, modify, and distribute this software and its documentation for any purpose, without fee, and without a written agreement is hereby gran-
ted, provided that the above copyright notice and this paragraph and the following two paragraphs appear in all copies.
IN NO EVENT SHALL THE UNIVERSITY OF CALIFORNIA BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR
CONSEQUENTIAL DAMAGES, INCLUDING LOST PROFITS, ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
IF THE UNIVERSITY OF CALIFORNIA HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
THE OF SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WAR-
RANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS ON AN « AS-IS »
BASIS, AND THE UNIVERSITY OF CALIFORNIA HAS NO OBLIGATIONS TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS,
OR MODIFICATIONS. Préface .................................................................................... ...

Sujets

Informations

Publié par
Nombre de lectures 116
Langue Français
Poids de l'ouvrage 7 Mo

Extrait

Documentation PostgreSQL 8.4.8 The PostgreSQL Global Development Group Documentation PostgreSQL 8.4.8 The PostgreSQL Global Development Group Copyright © 1996-2009 The Global Development Group Legal Notice PostgreSQL™ is Copyright (c) 1996-2009 by the PostgreSQL Global Development Group and is distributed under the terms of the license of the University of Ca- lifornia below. Postgres95™ is Copyright (c) 1994-5 by the Regents of the University of California. Permission to use, copy, modify, and distribute this software and its documentation for any purpose, without fee, and without a written agreement is hereby gran- ted, provided that the above copyright notice and this paragraph and the following two paragraphs appear in all copies. IN NO EVENT SHALL THE UNIVERSITY OF CALIFORNIA BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, INCLUDING LOST PROFITS, ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF THE UNIVERSITY OF CALIFORNIA HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. THE OF SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WAR- RANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS ON AN « AS-IS » BASIS, AND THE UNIVERSITY OF CALIFORNIA HAS NO OBLIGATIONS TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. Préface ........................................................................................................................................................ xix 1. Définition de PostgreSQL™ .................................................................................................................. xix 2. Bref historique de™ ............................................................................................................ xix 3. Conventions ........................................................................................................................................ xx 4. Pour plus d'informations ........................................................................................................................ xxi 5. Lignes de conduite pour les rapports de bogues ......................................................................................... xxi I. Tutoriel ...................................................................................................................................................... 1 1. Démarrage ............................................................................................................................................ 2 1.1. Installation ................................................................................................................................... 2 1.2. Concepts architecturaux de base ....................................................................................................... 2 1.3. Création d'une base de données ........................................................................................................ 2 1.4. Accéder à une base ........................................................................................................................ 3 2. Le langage SQL .................................................................................................................................... 5 2.1. Introduction ................................................................................................................................. 5 2.2. Concepts ..................................................................................................................................... 5 2.3. Créer une nouvelle table ................................................................................................................. 5 2.4. Remplir une table avec des lignes ..................................................................................................... 6 2.5. Interroger une table ........................................................................................................................ 6 2.6. Jointures entre les tables ................................................................................................................. 8 2.7. Fonctions d'agrégat ........................................................................................................................ 9 2.8. Mises à jour ................................................................................................................................ 11 2.9. Suppressions ............................................................................................................................... 11 3. Fonctionnalités avancées ........................................................................................................................ 12 3.1. Introduction ................................................................................................................................ 12 3.2. Vues .......................................................................................................................................... 12 3.3. Clés étrangères ............................................................................................................................ 12 3.4. Transactions ................................................................................................................................ 13 3.5. Fonctions window ........................................................................................................................ 14 3.6. Héritage ........................................................................................................................................ 3.7. Conclusion .................................................................................................................................. 18 II. Langage SQL ............................................................................................................................................ 19 4. Syntaxe SQL ....................................................................................................................................... 20 4.1. Structure lexicale ......................................................................................................................... 20 4.2. Expressions de valeurs .................................................................................................................. 27 5. Définition des données ........................................................................................................................... 35 5.1. Notions fondamentales sur les tables ................................................................................................ 35 5.2. Valeurs par défaut ........................................................................................................................ 36 5.3. Contraintes ................................................................................................................................. 36 5.4. Colonnes système ......................................................................................................................... 41 5.5. Modification des tables .................................................................................................................. 42 5.6. Droits ......................................................................................................................................... 44 5.7. Schémas ..................................................................................................................................... 45 5.8. L'héritage ...................................................................................................................................... 5.9. Partitionnement ............................................................................................................................ 51 5.10. Autres objets de la base de données ................................................................................................ 56 5.11. Gestion des dépendances .............................................................................................................. 57 6. Manipulation de données ........................................................................................................................ 58 6.1. Insérer des données ....................................................................................................................... 58 6.2. Actualiser les ................................................................................................................... 59 6.3. Supprimer des données .................................................................................................................. 59 7. Requêtes ............................................................................................................................................. 61 7.1. Aperçu ....................................................................................................................................... 61 7.2. Expressions de table ..................................................................................................................... 61 7.3. Listes de sélection ........................................................................................................................ 69 7.4. Combiner des requêtes .................................................................................................................. 70 7.5. Tri des lignes ............................................................................................................................... 70 7.6.LIMIT etOFFSET ....................................................................................................................... 71 7.7. ListesVALUES ............................................................................
  • Univers Univers
  • Ebooks Ebooks
  • Livres audio Livres audio
  • Presse Presse
  • Podcasts Podcasts
  • BD BD
  • Documents Documents