Einzelnen Beitrag anzeigen

Benutzerbild von TheMiller
TheMiller

Registriert seit: 19. Mai 2003
Ort: Gründau
2.480 Beiträge
 
Delphi XE7 Architect
 
#20

Re: Firebird Fehler (-206) Coloumn doesnt belong to table!

  Alt 1. Dez 2009, 17:08
Ja. Hier nochmal die Create-SQL und mein Delphi-Quelltext

Zitat:
CREATE TABLE KOMPENDIUM_KATEGORIEN (
"katid" INTEGER NOT NULL,
"parent" INTEGER DEFAULT -1,
"titel" VARCHAR(100),
/* Keys */
PRIMARY KEY ("katid")
);
Delphi-Quellcode:
  try
    Form1.ZQuery1.SQL.Clear;
    Form1.ZQuery1.SQL.Text:='INSERT INTO KOMPENDIUM_KATEGORIEN (parent, titel) VALUES (:id, :titel)';
    Form1.ZQuery1.ParamByName('id').AsInteger:=0;
    Form1.ZQuery1.ParamByName('titel').AsString:=katname;
    Form1.ZQuery1.ExecSQL;
  except
    RaiseSQLError();
  end;
  Mit Zitat antworten Zitat