使用 cast() 函数
CAST函数用于将某种数据类型的表达式显式转换为另一种数据类型。
语法:CAST (expression AS data_type)
例子:
resq_code 为int类型
SELECT * from apirun_result
where cast(resq_code as char)
like '4%%'
使用 cast() 函数
CAST函数用于将某种数据类型的表达式显式转换为另一种数据类型。
语法:CAST (expression AS data_type)
例子:
resq_code 为int类型
SELECT * from apirun_result
where cast(resq_code as char)
like '4%%'