![]() |
Datenbank: SQLite • Version: 3.47 • Zugriff über: FireDAC
SQLite und Calculated Columns
Wir haben ein Problem bei einem Delphi Projekt, in dem wir MS Access als Datenbank durch SQLite ersetzen, damit die Replikation mit
![]() Abstrahiert ist dies unser Problem: Folgende Table in SQLite: Zitat:
Code:
.. ist die Spalte c ein Integer Feld. Ändern wir die Sortierung zu...
SELECT
IIF(b > 0, a / b, NULL) AS c FROM t1 ORDER BY b DESC Zitat:
Auch ein Type Cast hilft nicht weiter: Zitat:
Recht herzlichen Dank für eine Tipp im Voraus. Salut, Mathias |
AW: SQLite und Calculated Columns
Wie wäre es mit Cast um die ganze iif-Funktion?
Code:
SELECT CAST(IIF(b > 0, a / b, NULL) AS INTEGER) AS c FROM t1; |
AW: SQLite und Calculated Columns
Ich habe da gerade in der DP-EN geantwortet: Hast du es schon mit einem MapRule für das Feld c probiert?
![]() |
Alle Zeitangaben in WEZ +1. Es ist jetzt 18:32 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 by Thomas Breitkreuz