Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hkXeu-0001Cs-6y for pgsql-es-ayuda@arkaria.postgresql.org; Mon, 08 Jul 2019 17:42:36 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hkXes-0003C1-Ui for pgsql-es-ayuda@arkaria.postgresql.org; Mon, 08 Jul 2019 17:42:34 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hkXes-000373-IN for pgsql-es-ayuda@lists.postgresql.org; Mon, 08 Jul 2019 17:42:34 +0000 Received: from mail-qt1-x841.google.com ([2607:f8b0:4864:20::841]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hkXep-00034f-Gh for pgsql-es-ayuda@postgresql.org; Mon, 08 Jul 2019 17:42:34 +0000 Received: by mail-qt1-x841.google.com with SMTP id 44so15009675qtg.11 for ; Mon, 08 Jul 2019 10:42:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=cjIpZP0je5zHmcsbWyLtDFwvYhm0PVJUnAfdLKydPmY=; b=t7shVXurQTlOSiDdNoH3vPxiiHyyfvXLFg3dogMNEQjNhTtit6ruAIYM3auPHrx1Ih hKouEKFbYj/mshbXa3VzPuU4QPEjojtnOe8ZphgOnTkuMzs9NzgjQ86X7ggdZbTY+yYW 2s32XAkQCDuT/8qtJP1QJRUowwLnAvF4IyjG4RVDCy0isEU3kPJfbYypTpTJhx7ibpIx 8Z9dmWVSSxrMR6Hy9MYJlUqxHBxtaz1fmczyU0HVCR8cR105tEy9vVx7rq+zhvIaF1Y6 +E4gqq9w40tu44fJObSSw4+Aiwv8VFyvjCNEIj0RMWUpEZRllnJs5qfWs2iQDn+hB+Sm AoRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=cjIpZP0je5zHmcsbWyLtDFwvYhm0PVJUnAfdLKydPmY=; b=otcayc8BXV5lB4vMk4vbqPl8qh51O8X+qxbU+siLTUtaDqrxAj6NYXEJ9+w06/+1k4 4T4LZS/Lbjm344V8y8NO0UvLzwfYmqX0YPqyh+BaKm/OczR62rKmyzAwHU0CcrOXOQAH YckWiJ+KcsHlKPhCsQVZ/zGu2BdB9DxSe69bxUUQcLbE7tJ3EL++/pZ15hpcf1OoQK4A cgWzFVXAkXm0rsqpyznpwszT4sPcR/QDggVo6UJlBlNYEpo56mtpKDtraKHX2ajyayn3 YksxBNZLhEJWHsGV2iS96uYz0dqPQzAs3DbK3MR/3Dx8Tp2YPfn9UXb8QXKPbIDWg/Jq rhTA== X-Gm-Message-State: APjAAAV0lmTN3wrVcYmesgwo3f2W3Ukf5EJumKasmNCBH70wv93vABwI UJlP+8D8oRZS9Fc1DAmfCfwOCw== X-Google-Smtp-Source: APXvYqw+52W8XkmJCepE5MnWV7E8TgypjRlMLA/pWBGrePFwnH6H30vYqXTs40UFjttQYrUss7QzXw== X-Received: by 2002:ac8:7549:: with SMTP id b9mr14726857qtr.198.1562607750092; Mon, 08 Jul 2019 10:42:30 -0700 (PDT) Received: from nimloth.alvh.no-ip.org ([190.121.29.3]) by smtp.gmail.com with ESMTPSA id 18sm4811067qkh.77.2019.07.08.10.42.29 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 08 Jul 2019 10:42:29 -0700 (PDT) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id E04A5124A5B; Mon, 8 Jul 2019 13:42:27 -0400 (-04) Date: Mon, 8 Jul 2019 13:42:27 -0400 From: Alvaro Herrera To: Juan =?iso-8859-1?Q?Jos=E9_Santamar=EDa?= Flecha Cc: Ernesto Ruiz , Ayuda Subject: Re: Como transformar punto decimal a coma decimal Message-ID: <20190708174227.GA12941@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Gracias, Juan José. > El lun., 8 jul. 2019 15:58, Ernesto Ruiz escribió: > > > Ante todo reciban de mi parte un cordial saludo. La presente es para saber > > si existe una sentencia SQL que me permita transformar el punto decimal en > > coma decimal de una tabla ya creada y cargada. Agradezco todo el apoyo > > brindado. Los "puntos" decimales son una característica de la configuración regional que uses -- no se representan en los datos en disco, sino sólo al momento de imprimirlos. Si quieres control fino del formato de impresión de un valor numérico, puedes usar to_char() y los controles de esta tabla: https://www.postgresql.org/docs/11/functions-formatting.html#FUNCTIONS-FORMATTING-NUMERIC-TABLE habiendo definido lc_numeric a un valor que te convenga. Saludos -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services