Microsoft SQL Server 2005将bigint强制转换为字符串

时间:2010-04-14 20:19:22

标签: sql-server casting

如何将bigint变量转换为字符串?

DECLARE @id bigint

1 个答案:

答案 0 :(得分:35)

select CAST(@id as varchar(max))