Re: [despammed] allowing ',' (comma) in float8

Поиск
Список
Период
Сортировка
От Andreas Kretschmer
Тема Re: [despammed] allowing ',' (comma) in float8
Дата
Msg-id 20050619072354.GA5754@webserv.wug-glas.de
обсуждение исходный текст
Ответ на allowing ',' (comma) in float8  (stig erikson <stigerikson_nospam_@yahoo.se>)
Ответы Re: [despammed] allowing ',' (comma) in float8  (Andreas Kretschmer <akretschmer@despammed.com>)
Список pgsql-novice
am  12.06.2005, um 12:17:12 +0200 mailte stig erikson folgendes:
> hi.
> is it possible to use flort values with a comma as decimal placeholder?
>
> i am trying to use copy to insert a table, the table contains a few columns
> with numerical values such as price, the vales are given on the format
> "2345,12", postgresql seems to allow only "2345.12".

You can pipe the input-file thru tools like sed ore awk and substitute
',' with '.'. This is simple.


Regards, Andreas
--
Andreas Kretschmer    (Kontakt: siehe Header)
Heynitz:  035242/47212,      D1: 0160/7141639
GnuPG-ID 0x3FFF606C http://wwwkeys.de.pgp.net
 ===    Schollglas Unternehmensgruppe    ===

В списке pgsql-novice по дате отправления:

Предыдущее
От: Michael Fuhr
Дата:
Сообщение: Re: Storing an array to Postgresql table
Следующее
От: Andreas Kretschmer
Дата:
Сообщение: Re: [despammed] allowing ',' (comma) in float8