Bonjour,

je m'essaye aux fonctions dans PostGreSQL, mais je n'arrive pas �
l'�crire correctement. Voici ce qui m'arrive :

lugin=# CREATE FUNCTION no_client() RETURNS INTEGER AS '
lugin'# BEGIN
lugin'# IF NEW.num_client!=OLD.num_client THEN
lugin'# UPDATE factures set factures.num_client=NEW.num_client
lugin'# WHERE factures.num_client=OLD.num_client;
lugin'# END IF;
lugin'# RETURN 1;
lugin'# END;
lugin'# ' LANGUAGE 'plpgsql';
ERROR:  language "plpgsql" does not exist
lugin=#

language plpgsql n'existe pas, je pensais que c'�tait interne � la base
de donn�e (version 7.3.2) et donc qu'aucun module externe ne sont sens�s
�tre install�, me trompe-je? Le nom du langage a chang�, je n'en ai rien
vu. Toutes suggestion est bienvenue.

Merci

-- 
Jean-Bruno Luginb�hl <[EMAIL PROTECTED]>
Luginb�hl & Cie SA

_______________________________________________
gull mailing list
[EMAIL PROTECTED]
http://lists.alphanet.ch/mailman/listinfo/gull

Répondre à