dbTalk Databases Forums  

Re: [BUGS] [postgres] Teilstring auslesen

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


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



Reply
 
Thread Tools Display Modes
  #1  
Old   
André Laugks
 
Posts: n/a

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






Hallo!

von Stefan Miefert <postgres (AT) yahoogroups (DOT) de> am 27.07.2005:
Quote:
wie kann ich in Postgre etwas ähnliches auslesen wie z.b: mit:
LEFT(feldname,10) AS neuerwert
Ich möchte aus einem Datumsfeld nur das Jahr auslesen.
SELECT to_char(feldname, 'YYYY') FROM
tabelle;


Quote:
Eine zweite Frage wäre wie ich ein Datum das in der DB so steht:
2005-04-10
so aulsesen kann
10-04-2005
SELECT to_char(feldname, 'DD-MM-YYYY') FROM
tabelle;



André Laugks

--
::Webdevelopment::
Kempener Strasse 65
50733 Köln
Tel.: 0221 / 73 02 56
Mobil: 0177 / 32 22 707
http://www.andre-laugks.de
mail (AT) andre-laugks (DOT) de



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


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




---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo (AT) postgresql (DOT) org so that your
message can get through to the mailing list cleanly


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.