![]() |
Datenbank: Firebird • Version: 2.5 • Zugriff über: Delphi
Firebird Feld automatisch berechnen
Hallo
Ich bin neu hier. Ich bedanke mich gleich für die vielen interessanten Themen, die mir schon viele Male weitergeholfen haben. Nun habe ich ein Problem: Ich will mit Firebird eine neue Tabelle erstellen mit einem Feld Geburtsdatum. In einem weiteren Feld möchte ich, dass danach automatisch das Geburtsjahr angezeigt wird. Ich habe mit computed by und extract year from Geburtsdatum versucht, aber es funktioniert nicht. Kann mir da jemand helfen? Geburtsdatum date , GebJahr computed by extract(year from Geburtsdatum), Vielen Dank im Voraus I can me not out |
AW: Firebird Feld automatisch berechnen
Eine Fehlermeldung wäre hilfreich ...
|
AW: Firebird Feld automatisch berechnen
Danke für die schnelle Antwort.
Ich habe das Problem selber gelöst. Es war vermutlich ein Klammerfehler. So funktioniert es: Gebdatum date, Jahr integer computed by (extract(year from Gebdatum)) mfG I can me not out |
AW: Firebird Feld automatisch berechnen
Es fehlte auf jedenfall der Typ des Feldes
|
Alle Zeitangaben in WEZ +1. Es ist jetzt 14:33 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz