adocommand1.CommandText:=‘insert into ...........’

adocommand1.Execute;
执行这段代码后会有如上的出错信息

解决方案 »

  1.   

    你把你的SQL 语句写全了,看一看是怎么写的,
    还有,你的adocommand1的commandtype为什么呢?
      

  2.   

    adocommand1.CommandText:='insert into CourseInfo'+'('+'id,type,fullname,period,annual,area,vocation,property,object,sort,grade,courseform,coursemode,starttime,endtime'+')'+' values'+'('+':IDInfo,:CourseType,:fullname,:period,:annual,:area,:vocation,:CourseProperty,:CourseObject,:sort,:grade,:CourseForm,:CourseMode,:StartTime,:EndTime'+')';
    adocommand1.Execute;commandtype为:cmdtext