F
fl112900
Unregistered / Unconfirmed
GUEST, unregistred user!
adoquery1.Close;
adoquery1.SQL.Clear;
adoquery1.ConnectionString:=srcstr1;
adoquery1.SQL.Add('ALTER TABLE daa add column qk char(4) null' );//添加字段
adoquery1.sql.add('update daa set qk=''i'' from daa a,data b where a.jh = b.jh and a.el between b.jd1 and b.jd2');//更新字段的值~~~~~~~
adoquery1.ExecSQL;
add 添加字段成功
而 update 却要出错 那上面那样为字段更新值不对吗?
'[Microsoft][ODBC Visual FoxPro Driver]Command contains unrecognized phrase/keyword'.
adoquery1.SQL.Clear;
adoquery1.ConnectionString:=srcstr1;
adoquery1.SQL.Add('ALTER TABLE daa add column qk char(4) null' );//添加字段
adoquery1.sql.add('update daa set qk=''i'' from daa a,data b where a.jh = b.jh and a.el between b.jd1 and b.jd2');//更新字段的值~~~~~~~
adoquery1.ExecSQL;
add 添加字段成功
而 update 却要出错 那上面那样为字段更新值不对吗?
'[Microsoft][ODBC Visual FoxPro Driver]Command contains unrecognized phrase/keyword'.