![]() |
TQuery und update
hallo
mit dem Tquery lasse ich mir meine daten anzeigen, nun möchte ich ein update damit machen, leider gehts es nicht es kommt die meldung, der der cursor handle nicht erstellt werden kann
Delphi-Quellcode:
Query1.Active := false;
Query1.SQL.Text := 'Insert Into songs.db '+ '(songs_id_benutzer,songs_interpret,songs_titel,songs_bsp,songs_laufzeit, '+ 'songs_interval,songs_ausgeschrieben,songs_symbol1,songs_symbol2 ) Values ('+ table1.findField('ben_id').AsString + ','''+DataGrid1.Cells[0,DataGrid1.RowCount-1]+ ''''+ ','''+DataGrid1.Cells[1,DataGrid1.RowCount-1]+ ''''+ ','''+DataGrid1.Cells[2,DataGrid1.RowCount-1]+ ''''+ ','''+DataGrid1.Cells[3,DataGrid1.RowCount-1]+ ''''+ ','''+DataGrid1.Cells[4,DataGrid1.RowCount-1]+ ''''+ ','''+DataGrid1.Cells[5,DataGrid1.RowCount-1]+ ''''+ ','''+DataGrid1.Cells[6,DataGrid1.RowCount-1]+ ''''+ ','''+DataGrid1.Cells[7,DataGrid1.RowCount-1]+ ''''+ ')'; Query1.Active := true; |
Re: TQuery und update
bitte nicht schlagen, hab die antwort in der delphi hilfe gefuden
Query1.Close; Query1.SQL.Clear; Query1.SQL.Add('Delete from Country where Name = ''Argentina'''); Query1.ExecSQL; dann wird kein handle erzeugt |
Alle Zeitangaben in WEZ +1. Es ist jetzt 10:13 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