Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
| From | Michael Bode <m.g.bode@web.de> |
|---|---|
| Newsgroups | ger.ct |
| Subject | Re: Postgressql |
| Date | 2022-10-02 20:52 +0200 |
| Message-ID | <jpu4vpF64clU3@mid.individual.net> (permalink) |
| References | <thckve$1mb4h$4@dont-email.me> <jpu4eeF64clU2@mid.individual.net> <thcma4$1mb4h$6@dont-email.me> |
Goetz Schultz <news.expire1225@goetz.co.uk> writes: > 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. Dann habe ich hier eine andere PostgreSQL Version. select 1234567890 / 100; ?column? ---------- 12345678 (1 row) -- "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 | Next — Previous in thread | Next in thread | Find similar | Unroll 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