F
fossil
Unregistered / Unconfirmed
GUEST, unregistred user!
var a: array [0..6]of char;
begin
a:='abcd';
with adodataset do
begin
close;
commandtext:='select * from table';
open;
insert;
fieldbyname('a').AsString:= a; //A字段为varchar ,长度为7
post;
close;
commandtext:='select * from table where a='+a;
open; //总报错说invalid colum 'abcd'到底什么原因啊
end;
end;
begin
a:='abcd';
with adodataset do
begin
close;
commandtext:='select * from table';
open;
insert;
fieldbyname('a').AsString:= a; //A字段为varchar ,长度为7
post;
close;
commandtext:='select * from table where a='+a;
open; //总报错说invalid colum 'abcd'到底什么原因啊
end;
end;