mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-06-28 09:28:55 -04:00
20 lines
432 B
Markdown
20 lines
432 B
Markdown
---
|
|
mapped_pages:
|
|
- https://www.elastic.co/guide/en/elasticsearch/reference/current/sql-operators-cast.html
|
|
---
|
|
|
|
# Cast operators [sql-operators-cast]
|
|
|
|
## `Cast (::)` [sql-operators-cast-cast]
|
|
|
|
`::` provides an alternative syntax to the [`CAST`](/reference/query-languages/sql/sql-functions-type-conversion.md#sql-functions-type-conversion-cast) function.
|
|
|
|
```sql
|
|
SELECT '123'::long AS long;
|
|
|
|
long
|
|
---------------
|
|
123
|
|
```
|
|
|
|
|