Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Datenbanken (https://www.delphipraxis.net/15-datenbanken/)
-   -   UIB Prepared Statement - Arrays als Parameter möglich? (https://www.delphipraxis.net/167524-uib-prepared-statement-arrays-als-parameter-moeglich.html)

christophspaeth 3. Apr 2012 17:12

Datenbank: Firebird • Version: 2.1 • Zugriff über: UIB

UIB Prepared Statement - Arrays als Parameter möglich?
 
Hallo,

ich glaube zwar rausgefunden zu haben, dass das was ich vorhabe grundsätzlich mir manchen DBMS funktioniert, aber nicht ob und wie ich das mit Firebird mit UIB machen kann.
Ich habe ein Statement der Art
Code:
Select * from mytable where id in (1, 2, 3, 7)
Dieses Array würde ich gerne als Parameter übergeben. Das Statement sähe dann entsprechend so aus
Code:
Select * from mytable where id in :IDs
Das einzige was ich bei UIB gefunden habe, das irgendwie in Frage kommen könnte wäre Query.Params.ByNameAsVariant. Weiß jemand ob/wie das geht?

Gruß
Chris

mkinzler 3. Apr 2012 17:14

AW: UIB Prepared Statement - Arrays als Parameter möglich?
 
Nein m.W. leider nicht.


Alle Zeitangaben in WEZ +1. Es ist jetzt 11:35 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz