Problem with ZQuery
Posted: 28.04.2013, 11:59
Hi guys,
i've a problem with zquery...
This is the code:
And the database is in the attached image...
in Callsign (edit field) i write ABABAB
in Nome (edit field) i write CDCDCD
in Country (edit field) i write EFEFEF
The content of ZQuery.Sql.Text it's (i hope) correct:
After all Delphi say me:
SQL Error: Unknown column 'ABABAB' in 'field list
How can i resolve?
i've a problem with zquery...
This is the code:
Code: Select all
// inizia sql
with ZQuery1 do
begin
Active:=False;
SQL.Clear;
SQL.Add('Insert into logbook(Callsign,Name,City) values('+Callsign.Text+','+Nome.Text+','+Country.Text+');');
ExecSQL;
end;
// finisce sql
in Callsign (edit field) i write ABABAB
in Nome (edit field) i write CDCDCD
in Country (edit field) i write EFEFEF
The content of ZQuery.Sql.Text it's (i hope) correct:
Code: Select all
insert into logbook(Callsign,Name,City) Values(ABABAB,CDCDCD,EFEFEF);
SQL Error: Unknown column 'ABABAB' in 'field list
How can i resolve?