問題:查詢數據庫語句報錯“數據類型 text 和 varchar 在 equal to 運算符中不兼容。”
解決:
select * from 表名稱
where cast(查詢的字段名稱 as varchar(max)) =’查詢的值’