我在向数据库中写如数据时出错,求各位给找一下问题在哪里
adocommand1.CommandText:='insert into shebeiweixiutable([维修编号])valuse('''+inttostr(maxnum+1)+''')';
adocommand1.Execute;
提示错误是: ''' is not a valid floating point value'. Process stopped. Use Step or Run to continue.
adocommand1.CommandText:='insert into shebeiweixiutable([维修编号])valuse('''+inttostr(maxnum+1)+''')';
adocommand1.Execute;
提示错误是: ''' is not a valid floating point value'. Process stopped. Use Step or Run to continue.
ADOCommand1.Parameters.ParamByName('P').value:=inttostr(maxnum+1);
这样写代码看起来清楚一点