select max(convert(int,abc))from xxxx;

1.int 代表要转换成的类型;

2.abc是要转换的字段名(即列名)

3.xxxx是表名

更多推荐

SQLServer用sql语句查询时把varchar类型转换为int类型的sql语句