TINYINT
type
Applies to: Databricks SQL Databricks Runtime
Represents 1-byte signed integer numbers.
Syntax
{ TINYINT | BYTE }
Limits
The range of numbers is from -128 to 127.
Literals
[ + | - ] digit [ ... ] Y
digit
: Any numeral from 0 to 9.
The Y
postfix is case insensitive.
Examples
> SELECT +1Y;
1
> SELECT CAST('5' AS TINYINT);
5
Related
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for