首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > .NET >

delphi菜鸟,如何添加access数据库中的表table1中的记录呢

2012-02-05 
delphi初学者,怎么添加access数据库中的表table1中的记录呢?在delphi中,如果用ADO的话,添加一条记录需要用

delphi初学者,怎么添加access数据库中的表table1中的记录呢?
在delphi中,如果用ADO的话,添加一条记录需要用到那些组件呢?把SQL语句写到那里去呢?万分迷茫,期待您的答案!

[解决办法]
var
vsql: string;
///
begin
vsql:= 'insert into table1 values (1, ' ' 'b ' ' ', ' ' 'd ' ' ') ';
with adocommand do
begin
connection:= adoconnection1;
commondtype:= cmdtext;
commondtext:= vsql;
try
Execute;
except
end;

end;
end;

热点排行