![]() |
Datenbank: Access • Zugriff über: Delphi
Update Abfrage mit Parametern..
Wie funktioniert eine Update abfrage mit PArametern. Wenn ein String in ein TExtfeld in der Datenbank geschrieben wird?
|
Re: Update Abfrage mit Parametern..
z.B. so
Delphi-Quellcode:
Query.SQL := 'UPDATE Personen SET Name = :Name WHERE PersonID = :ID';
Query.Params.ParamByName('Name').Value := 'Meier'; Query.Params.ParamByName('ID').Value := 101; Query.ExecSQL; |
Alle Zeitangaben in WEZ +1. Es ist jetzt 10:24 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