Code: Select all
With ZQuery1 do Begin
Sql.Clear;
Sql.Add('INSERT INTO CLIENTES (nombre, apellido) VALUES (:val1, :val2)');
ZQuery1.ParamByName('val1').AsString:='xxxxx';
ZQuery1.ParamByName('val2').AsString:='yyyyy';
ExecSql;
End;
id: primary key and autoincrement
nombre: char 20
apellido: char 20
the error i get says column unknown NOMBRE
can someone tellme whats wrong???