---
title: BIGINT type
description: The BIGINT type represents 8-byte signed integer numbers in Databricks SQL and Databricks Runtime.
canonical_url: https://docs.databricks.com/aws/en/sql/language-manual/data-types/bigint-type
---

# `BIGINT` type

**Applies to:** ![check marked yes](https://docs.databricks.com/aws/en/images/icons/check.png) Databricks SQL ![check marked yes](https://docs.databricks.com/aws/en/images/icons/check.png) Databricks Runtime

Represents 8-byte signed integer numbers.

## Syntax

```
{ BIGINT |
  LONG }
```

## Limits

The range of numbers is from -9,223,372,036,854,775,808 to 9,223,372,036,854,775,807.

## Literals

```
[ + | - ] digit [ ... ] [L]
```

`digit`: Any numeral from 0 to 9.

If the literal is not post-fixed with `L` (or `l`) and it is within the range for an INT it will be implicitly turned into an INT.

## Examples

```sql
> SELECT +1L;
  1

> SELECT CAST('5' AS BIGINT);
  5

> SELECT typeof(-2147483);
  INT

> SELECT typeof(123456789012345);
  BIGINT
```

## Related

* [`TINYINT` type](https://docs.databricks.com/aws/en/sql/language-manual/data-types/tinyint-type.md)
* [`SMALLINT` type](https://docs.databricks.com/aws/en/sql/language-manual/data-types/smallint-type.md)
* [`INT` type](https://docs.databricks.com/aws/en/sql/language-manual/data-types/int-type.md)
* [`DECIMAL` type](https://docs.databricks.com/aws/en/sql/language-manual/data-types/decimal-type.md)
* [`FLOAT` type](https://docs.databricks.com/aws/en/sql/language-manual/data-types/float-type.md)
* [`DOUBLE` type](https://docs.databricks.com/aws/en/sql/language-manual/data-types/double-type.md)
* [`cast` function](https://docs.databricks.com/aws/en/sql/language-manual/functions/cast.md)
