Skip to content

Commit

Permalink
Merge pull request #3091 from soerenwolfers/patch-21
Browse files Browse the repository at this point in the history
Interval from decimal string
  • Loading branch information
szarnyasg authored Jun 16, 2024
2 parents 74a3c2d + 2af6a3c commit 836301b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/sql/data_types/interval.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ SELECT
> Warning Decimal values can be used in strings but are rounded to integers.
> ```sql
> SELECT INTERVAL '1.5' YEARS;
> -- Returns 24 months; equivalent to `to_years(CAST(1.5 AS INTEGER))
> -- Returns 12 months; equivalent to `to_years(CAST(trunc(1.5) AS INTEGER))`
> ```
> For more precision, use a more granular unit; e.g., `18 MONTHS` instead of `'1.5' YEARS`.
Expand Down

0 comments on commit 836301b

Please sign in to comment.