select * from hrmdepartmentdefined where zhbgly = ‘36‘ 会报错。显示
【Err】42000-sql server 数据类型 text和varchar 在equal to 运算符中不兼容。
正确的写法为:
select * from hrmdepartmentdefined where convert(varcahr(1000),zhbgly) = ‘36‘
时间: 2024-10-13 16:23:27
select * from hrmdepartmentdefined where zhbgly = ‘36‘ 会报错。显示
【Err】42000-sql server 数据类型 text和varchar 在equal to 运算符中不兼容。
正确的写法为:
select * from hrmdepartmentdefined where convert(varcahr(1000),zhbgly) = ‘36‘