Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to specify a BIGINT literal in T-SQL?

Aside from wrapping my literal in a CONVERT function, is there a way to specify that I want e.g. 12345 represented as a BIGINT and not an INT? In C#, I could specify 12345L, but I'm unaware of equivalent functionality in T-SQL.

like image 493
Jason Avatar asked Aug 19 '16 13:08

Jason


1 Answers

select cast(1 as bigint)

IOW you simply cast your value. What would be the purpose?

like image 126
Cetin Basoz Avatar answered Sep 28 '22 00:09

Cetin Basoz