Delphi + MySQL , ado + Myodbc驱动连接一个表中有两个字段 Field Type Attributes Null Default Extraautoid mediumint(8) UNSIGNED No auto_increment
tel varchar(6) Yes NULL添加了三条记录
autoid tel
1
2 98765
3 12345然后查询 select * from table1 where autoid = 1 时出错
错误信息为: Type mismatch for field 'tel',expecting:String actual:Memo但当select * from table1 where autoid = 2 或者 select * from table1 where autoid = 3 就一切正常了,连接到MYSQL服务器用MysqlAdmin中的查询就没有这个问题,遇到过类似问题的请说说
tel varchar(6) Yes NULL添加了三条记录
autoid tel
1
2 98765
3 12345然后查询 select * from table1 where autoid = 1 时出错
错误信息为: Type mismatch for field 'tel',expecting:String actual:Memo但当select * from table1 where autoid = 2 或者 select * from table1 where autoid = 3 就一切正常了,连接到MYSQL服务器用MysqlAdmin中的查询就没有这个问题,遇到过类似问题的请说说
你把它设置为no如何呢??