Dani - plq escribió: > Hola lista, > > Tengo un problema con el separador de decimales: > hago: > > select '2,00'::numeric > > y me dice > > ERROR: invalid input syntax for type numeric: "2,00" > Estado SQL:22P02
Me parece que no se puede :-( Puedes usar to_number: alvherre=# select to_number('2,00', '99G999D9'); to_number ----------- 2.0 (1 fila) http://www.postgresql.org/docs/8.3/static/functions-formatting.html#FUNCTIONS-FORMATTING-NUMERIC-TABLE -- Alvaro Herrera http://www.amazon.com/gp/registry/DXLWNGRJD34J "Postgres is bloatware by design: it was built to house PhD theses." (Joey Hellerstein, SIGMOD annual conference 2002) -- TIP 6: ¿Has buscado en los archivos de nuestra lista de correo? http://archives.postgresql.org/pgsql-es-ayuda