From: | philippe dhondt <philippe(dot)dhondt(at)tele2(dot)be> |
---|---|
To: | postgresql <pgsql-fr-generale(at)postgresql(dot)org> |
Subject: | Problème de concatenation |
Date: | 2008-09-23 12:50:38 |
Message-ID: | 1222174239.10027.1.camel@ibm1 |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-fr-generale |
Bonjour à toutes et tous,
dans une fonction declenchée par un trigger j'ai 3 variables vA, vB &
vC.
On y effectue un calcul du style :
vA := vB - vC;
puis, on souhaite inserer vA dans une table :
strquerry = 'INSERT INTO table_name (resultat, fieldA) VALUES (1, ' ||
vA || ')';
EXECUTE strquerry;
ce qui me donne :
cannot EXECUTE a null querrystring
Pourtant, d'après ceci, la syntaxe paraît correcte
http://www.postgresql.org/docs/8.3/static/functions-string.html#FUNCTIONS-STRING-SQL
Une idée?
Merci d'avance.
From | Date | Subject | |
---|---|---|---|
Next Message | Ludovic Levesque | 2008-09-23 12:56:50 | Re: Problème de concatenation |
Previous Message | philippe dhondt | 2008-09-22 13:14:53 | Re: Problème de typage . |