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
还有,你的adocommand1的commandtype为什么呢?
adocommand1.Execute;commandtype为:cmdtext