数据库问题,请帮个忙
我是这样写的:
with ADOQuery1 do
begin
close;
sql.Clear;
sql.Add('Insert into 部门表(部门编号,部门名称)');
sql.Add('values("'+Edit1.Text+'","'+Edit2.Text+'")');
execsql;
showmessage('部门添加成功!');
modalresult:=mrok;
end;
end;
project MISair.exe raised exception class EOleException with message'列名'dpart'无效。'.Process stopped. Use step or Run to continue.为什么会出现这样的错误提示呢?
dpart是向Edit2.text输入的