问题:查询数据库语句报错“数据类型 text 和 varchar 在 equal to 运算符中不兼容。” 解决: select * from 表名称 where cast(查询的字段名称 as varchar(max)) =’查询的值’