dbTalk Databases Forums  

[BUGS] [postgres] Betrifft: Teilstring auslesen

mailing.database.pgsql-bugs mailing.database.pgsql-bugs


Discuss [BUGS] [postgres] Betrifft: Teilstring auslesen in the mailing.database.pgsql-bugs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
marco_0160
 
Posts: n/a

Default [BUGS] [postgres] Betrifft: Teilstring auslesen - 07-28-2005 , 08:29 AM






--- In postgres (AT) yahoogroups (DOT) de, Stefan Miefert <smiefert@k...>=20
schrieb:
Quote:
Hallo,
=20
wie kann ich in Postgre etwas =E4hnliches auslesen wie z.b: mit:
=20
LEFT(feldname,10) AS neuerwert
=20
Ich m=F6chte aus einem Datumsfeld nur das Jahr auslesen.
=20
Eine zweite Frage w=E4re wie ich ein Datum das in der DB so steht:
=20
2005-04-10
=20
so aulsesen kann
=20
10-04-2005
=20
Danke im vorab
Zum Teilstring kann ich Dir nichts sagen: rtfm :-)

Aber zu der Datumseinstellung:
In der Datei postgresql.conf unter # - Locale and Formatting - die=20
Einstellung ' datstyle =3D 'German' ' vornehmen.
Stell au=DFerdem die vier lc_* Werte auf 'de_DE@euro' . Dann sollte
das=20
funzen.

MfG
Marco




Wenn Sie Ihr Abonnement fuer diese Gruppe kuendigen moechten, senden=20
Sie eine E-Mail an:
postgres-unsubscribe (AT) egroups (DOT) de

=20
Yahoo! Groups Links

<*> Besuchen Sie Ihre Group im Web unter:
http://de.groups.yahoo.com/group/postgres/

<*> Um sich von der Group abzumelden, senden Sie eine Mail an:
postgres-unsubscribe (AT) yahoogroups (DOT) de

<*> Mit der Nutzung von Yahoo! Groups akzeptieren Sie unsere:
http://de.docs.yahoo.com/info/utos.html
=20




---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faq


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.