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


Groups > ger.ct > #569126

Re: Postgressql

From Goetz Schultz <news.expire1225@goetz.co.uk>
Newsgroups ger.ct
Subject Re: Postgressql
Date 2022-10-02 19:46 +0100
Organization A noiseless patient Spider
Message-ID <thcma4$1mb4h$6@dont-email.me> (permalink)
References <thckve$1mb4h$4@dont-email.me> <jpu4eeF64clU2@mid.individual.net>

Show all headers | View raw


On 02/10/2022 19:43, Michael Bode wrote:
> Goetz Schultz <news.expire1225@goetz.co.uk> writes:
> 
>> Hi,
>>
>> ich stehe vor einem Problem, wo ich nicht weiss ob es nicht geht und
>> deshalb keine Antwort finde oder einfach nur falsch suche:
>>
>> 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).
> 
> select column / 100 from table;
> 
> Oder verstehe ich das Problem nicht?
> 

Das gibt die anstatt 123456789 eben 1234567.89. Verschiebt nur den 
Dezimalpunkt.
Stefan's Antwort geht schon in die richtige Richtung.
-- 

Cheers,
    G.

Quis custodiet ipsos custodes?
---------------------------->8------------------------------
   /"\
   \ /  ASCII Ribbon Campaign
    X   against HTML e-mail
   / \
---------------------------->8------------------------------

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