时间:2026-04-22 07:51:39
1、第一种方式,convert函数,格式为:CONVERT(value, type),举个栗子:
2、第二种方式,cast函数,格式为:CAST(value as type),举个栗子:
3、再来个复杂点的栗子: