ERROR: cannot cast type real to money

From: Benoît Barbier <benoit(dot)br(at)skynet(dot)be>
To: Pgsql Fr Generale <pgsql-fr-generale(at)postgresql(dot)org>
Subject: ERROR: cannot cast type real to money
Date: 2005-01-06 11:44:08
Message-ID: 20050106124408.1afc5e45@venus
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-fr-generale

Bonjour à tous!

Je ne parviens pas à mettre une colonne de prix de type real dans une autre
de type money.
J'ai fait un test
UPDATE table1 SET prix = prix + cast(table2.realprix AS money) where
id_table1 = table2.id_table2 ;
ERROR: cannot cast type real to money

Quelqu'un à une idée?

Merci d'avance

Benoît

Responses

Browse pgsql-fr-generale by date

  From Date Subject
Next Message Patrick Welche 2005-01-06 19:04:41 Re: ERROR: cannot cast type real to money
Previous Message Sebastien MALLERET 2005-01-05 09:55:27 Re: Contacts presse