sqlserver里常用的语法

bb 为nvarchar(50)
CAST(bb AS int)

select MAX(CAST(bb AS int)) from AAA
原文地址:https://www.cnblogs.com/pnljs/p/3225211.html