mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 23:52:03 +00:00
Update float.md
This commit is contained in:
parent
36a575e124
commit
ad103b9db8
@ -20,7 +20,7 @@ CREATE TABLE IF NOT EXISTS float_vs_decimal
|
||||
Engine=MergeTree
|
||||
ORDER BY tuple();
|
||||
|
||||
# Generate 1 000 000 random number with 2 decimal places and store them as a float and as a decimal
|
||||
# Generate 1 000 000 random numbers with 2 decimal places and store them as a float and as a decimal
|
||||
INSERT INTO float_vs_decimal SELECT round(randCanonical(), 3) AS res, res FROM system.numbers LIMIT 1000000;
|
||||
```
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user