« PostgreSQL/Utilisation » : différence entre les versions

Aucun résumé des modifications
psql -d nom_database -U nom_utilisateur
</syntaxhighlight>
 
Pour changer la base courante :
<syntaxhighlight lang="sql">
SELECT current_database(); # postgres
\connect root;
SELECT current_database(); # root
</syntaxhighlight>
 
== Création de schéma ==
Un schéma est un élément d'une base qui peut contenir plusieurs tables.
CREATE SCHEMA mon_schema
 
== Création de table ==