Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > ger.ct > #569170

Re: Postgressql

From Michael Bode <m.g.bode@web.de>
Newsgroups ger.ct
Subject Re: Postgressql
Date 2022-10-03 10:15 +0200
Message-ID <jpvk1eFev8uU1@mid.individual.net> (permalink)
References <thckve$1mb4h$4@dont-email.me> <BIGINT-20221002193747@ram.dialup.fu-berlin.de> <thcm6p$1mb4h$5@dont-email.me> <7t633a972ci3233e8n3e8%sfroehli@Froehlich.Priv.at>

Show all headers | View raw


Stefan+Usenet@Froehlich.Priv.at (Stefan Froehlich) writes:

> On Sun, 02 Oct 2022 20:44:41 Goetz Schultz wrote:
>> On 02/10/2022 19:39, Stefan Ram wrote:
>>> Goetz Schultz <news.expire1225@goetz.co.uk> writes:
>>>> In einem SELECT-Statement ist eines der Felder ein BigInt. Ich
>>>> moechte von dem BigInt-wert die letzten beiden Ziffern wegfallen
>>>> lassen (also statt 10 nur 8 Ziffern). Geht das mit Bordmitteln
>>>> (Skripten /nach/ der Ausgabe geht, ist aber suboptimal).
>
> [F == 123456789]
>>> |mysql> SELECT LEFT(F,LENGTH(F)-2) FROM T;
>>> |+---------------------+
>>> || LEFT(F,LENGTH(F)-2) |
>>> |+---------------------+
>>> || 1234567             |
>>> |+---------------------+
>>> |1 row in set (0.00 sec)
>
>> Ah, das sieht schon mal gut aus. Sollte auch mit PSQL gehen .....
>
> Das ist *so* grausam, ich weiss, weshalb ich von MySQL vor über 10
> Jahren weggegangen bin!

Das sieht aus wie PHP. 11 + 1 = 111, manchmal.


-- 
"Die Abwesenheit von Evidenz zur Wirksamkeit ist keine Evidenz 
für die Abwesenheit von Wirksamkeit."
 - Der Grünen-Gesundheitsexperte Janosch Dahmen.

Back to ger.ct | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Postgressql Goetz Schultz <news.expire1225@goetz.co.uk> - 2022-10-02 19:23 +0100
  Re: Postgressql Michael Bode <m.g.bode@web.de> - 2022-10-02 20:43 +0200
    Re: Postgressql Goetz Schultz <news.expire1225@goetz.co.uk> - 2022-10-02 19:46 +0100
      Re: Postgressql Michael Bode <m.g.bode@web.de> - 2022-10-02 20:52 +0200
        Re: Postgressql Goetz Schultz <news.expire1225@goetz.co.uk> - 2022-10-02 19:59 +0100
          Re: Postgressql Stefan+Usenet@Froehlich.Priv.at (Stefan Froehlich) - 2022-10-03 08:01 +0000
        Re: Postgressql Goetz Schultz <news.expire1225@goetz.co.uk> - 2022-10-03 10:30 +0100
  Re: Postgressql Goetz Schultz <news.expire1225@goetz.co.uk> - 2022-10-02 19:44 +0100
    Re: Postgressql Stefan+Usenet@Froehlich.Priv.at (Stefan Froehlich) - 2022-10-03 08:06 +0000
      Re: Postgressql Michael Bode <m.g.bode@web.de> - 2022-10-03 10:15 +0200
        Re: Postgressql Stefan+Usenet@Froehlich.Priv.at (Stefan Froehlich) - 2022-10-03 09:57 +0000
        Re: Postgressql Michael Bode <m.g.bode@web.de> - 2022-10-03 12:12 +0200

csiph-web