L luyaong Unregistered / Unconfirmed GUEST, unregistred user! 2002-01-17 #1 窗口上有三个dbedit框,分别关联a.db里的a,b,c字段,我要把框里的字符写到a.db文件 中。用Table和Query分别怎么写,谁给我点例子?
W wafeijia Unregistered / Unconfirmed GUEST, unregistred user! 2002-01-17 #2 关联好的,修改后直接Table1.Post;就可以吗
E e_hua Unregistered / Unconfirmed GUEST, unregistred user! 2002-01-17 #4 query.append; a.datasource:=datasource1; a.datafield:=query.fieldbyname('a'); ..//b,c的代码同上 query.post;
query.append; a.datasource:=datasource1; a.datafield:=query.fieldbyname('a'); ..//b,c的代码同上 query.post;
L luyaong Unregistered / Unconfirmed GUEST, unregistred user! 2002-01-17 #5 a.datasource:=datasource1; 最前面的"a"是指的什么?
L lzhuan Unregistered / Unconfirmed GUEST, unregistred user! 2002-01-17 #7 1.table table1.append;.//新增 //在框中加入字符 table.post;//保存 2.query with query1 do begin clsoe; sql.clear; sql.add('select * from a.db'); open; appen; fieldbyname('a').asstring:=dbedit1.text; fieldbyname('b').asstring:=dbedit2.text; fieldbyname(c).asstring:=dbedit3.text; post; end;
1.table table1.append;.//新增 //在框中加入字符 table.post;//保存 2.query with query1 do begin clsoe; sql.clear; sql.add('select * from a.db'); open; appen; fieldbyname('a').asstring:=dbedit1.text; fieldbyname('b').asstring:=dbedit2.text; fieldbyname(c).asstring:=dbedit3.text; post; end;
L linglingx Unregistered / Unconfirmed GUEST, unregistred user! 2002-01-17 #8 Table :直接Table1.Post就可以了 Query: 用Sql语句 Updata 用一下应该可以的吧