(Moderator)
Registriert seit: 9. Dez 2005
Ort: Heilbronn
39.861 Beiträge
Delphi 11 Alexandria
|
Re: Update Database via SQL
1. Dez 2009, 14:59
insert into <Tablename> (FirstName, LastName, Sallary) values ( 'John', 'HeyHo', 20100);
But you can also use paramters:
insert into <Tablename> (FirstName, LastName, Sallary) values ( :firstname, :lastname, :sallary );
Delphi-Quellcode:
ABSQuery1.ParamByName( 'firstname').Value := 'John';
...
Markus Kinzler
|
|
Zitat
|