Précédent   Forum des professionnels en informatique > Bases de données > PostgreSQL
PostgreSQL Forum PostgreSQL. Avant de poster -> F.A.Q PostGreSQL Tutoriels PostGreSQL
Partagez cette discussion sur d'autres réseaux sociaux : Viadeo Twitter Google Facebook Digg Delicious MySpace Yahoo
Réponse Proposer ce sujet en actualité
 
Outils de la discussion
Publicité
'
Vieux 02/07/2004, 12h15   #1
Nouveau Membre du Club
 
Inscription : mai 2002
Messages : 111
Détails du profil
Informations forums :
Inscription : mai 2002
Messages : 111
Points : 29
Points : 29
Par défaut [schema] définition?

c'est quoi la notion de schéma dans postgresql ?
champion est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 07/07/2004, 17h48   #2
Membre du Club
 
Inscription : mars 2004
Messages : 89
Détails du profil
Informations forums :
Inscription : mars 2004
Messages : 89
Points : 59
Points : 59
bonjour,

pour la notion de schema, le mieux c'est de vous donner un exemple:

Citation:
depot=# \d articles_tbl
Table "public.articles_tbl"
Column | Type | Modifiers
----------------+-------------------+-----------
id_articles | integer | not null
id_deposant | integer |
id_geographie | integer |
id_employe | integer |
id_famille | integer |
description | text | not null
observation | text | not null
assure | boolean | not null
cle | boolean | not null
id_fournisseur | integer |
id_article | character varying |
prix_achat | numeric(9,2) |
prix_vente | numeric(9,2) |
nb_baisse | smallint | default 0
Indexes:
"articles_tbl_pkey" primary key, btree (id_articles)
"fk_deposants" btree (id_deposant)
"fk_employes" btree (id_employe)
"fk_famille" btree (id_famille)
"fk_fournisseur" btree (id_fournisseur)
"fk_geo" btree (id_geographie)
Foreign-key constraints:
"FK_deposant" FOREIGN KEY (id_deposant) REFERENCES deposants_tbl(id_deposant
) ON UPDATE RESTRICT ON DELETE RESTRICT
"FK_employe" FOREIGN KEY (id_employe) REFERENCES employes_tbl(id_employe) ON
UPDATE RESTRICT ON DELETE RESTRICT
"FK_famille" FOREIGN KEY (id_famille) REFERENCES famille_tbl(id_famille) ON
UPDATE RESTRICT ON DELETE RESTRICT
"FK_geo" FOREIGN KEY (id_geographie) REFERENCES geographie_tbl(id_geographie
) ON UPDATE RESTRICT ON DELETE RESTRICT
"FK_fournisseur" FOREIGN KEY (id_fournisseur) REFERENCES fournisseurs_tbl(id
_fournisseur) ON UPDATE RESTRICT ON DELETE RESTRICT
Triggers:
concat AFTER INSERT ON articles_tbl FOR EACH ROW EXECUTE PROCEDURE concat()
numero AFTER INSERT ON articles_tbl FOR EACH ROW EXECUTE PROCEDURE numero_tr
igger()
c'est la structure de votre base, table....
$grm$ est déconnecté   Envoyer un message privé Réponse avec citation 00
Réponse Proposer ce sujet en actualité
Outils de la discussion



Fuseau horaire GMT +2. Il est actuellement 15h25.


 
 
 
 
Partenaires

Hébergement Web