Forum: Datenbanken
Delphi
by p80286,
18. Mai 2012
Würdest du einmal etwas Code spendieren?
Mir fehlt vor allem ein .Close
fuunc.ASQLite3Query1.Close;
fuunc.ASQLite3Query1.SQL.Clear;
fuunc.ASQLite3Query1.SQL.Add('INSERT INTO mails (absender, mail, datum) VALUES ('''+abs+''', '''+txt+''', '''+datum+''')');
fuunc.ASQLite3Query1.ExecSQL;
fuunc.ASQLite3Query1.Close;
Forum: Datenbanken
Delphi
by p80286,
18. Mai 2012
soo kompliziert ist das auch nicht:
fuunc.ASQLite3Query1.SQL.Add('INSERT INTO mails (absender, mail, datum) VALUES (:abs_txt,:txt_txt,:datum_txt)');
je nachdem mit welcher Schnittstelle Du arbeitest vaariiert die Parameterübergabe etwas:
fuunc.ASQLite3Query1.Parameter.ParameterbyName('txt_txt').asstring:=MeinText;...