又一个语句错误问题,麻烦高手指点一下.
atyzy 2002-12-22 08:49:15 adoquery+dbIV
我用以下语句添加一条纪录,为什么出错?(insert into 语句的语法错误)
adoquery1.close;
adoquery1.sql.Clear ;
adoquery1.sql.Clear ;
adoquery1.sql.Text:='insert usertype (rq,name,source) ' + 'values ('+ datetostr(now()) +','''+ edit1.Text +''','+ uppercase(edit2.Text)+')';
try
adoquery1.execsql;
except
close;
self.Close ;
end;
其中rq为date类型,source为nummber类型,name 为c类型.