![]() |
Re: Einfache Datenbank mit libSQL
und wofür sind jetzt die []? wenn ich datensätze hinzufügen möchte wie schreib ich das dann? so, oder mit []?
Code:
Marcel
INSERT INTO tblTracks(ID, Artist, Album, Track, Title) VALUES (NULL, 'Die Ärzte', 'Jazz ist anders', 9, 'Junge');
|
Re: Einfache Datenbank mit libSQL
Mach das besser mit Parametern:
Delphi-Quellcode:
ZQuery.SQL := 'INSERT INTO tblTracks(Artist, Album, Track, Title) VALUES (:artist, :album, :track, :title)';
ZQuery.ParamByName('artist').AsString := 'Die Ärzte'; ZQuery.ParamByName('album').AsString := 'Jazz ist anders'; ZQuery.ParamByName('track').AsInteger := 9; ZQuery.ParamByName('title').AsString := 'Junge'; ZQuery.ExecSQL; |
Alle Zeitangaben in WEZ +1. Es ist jetzt 02:28 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