Created
January 30, 2022 15:32
-
-
Save jleedev/b8eb3fcb97b5a443071dde47a1e8e8f6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mysql> create table t(f float); | |
Query OK, 0 rows affected (0.02 sec) | |
mysql> insert into t(f) values (999999),(1000000),(1000001); | |
Query OK, 3 rows affected (0.00 sec) | |
Records: 3 Duplicates: 0 Warnings: 0 | |
mysql> select * from t; | |
+---------+ | |
| f | | |
+---------+ | |
| 999999 | | |
| 1000000 | | |
| 1000000 | | |
+---------+ | |
3 rows in set (0.00 sec) | |
mysql> select distinct f from t; | |
+---------+ | |
| f | | |
+---------+ | |
| 999999 | | |
| 1000000 | | |
| 1000000 | | |
+---------+ | |
3 rows in set (0.00 sec) | |
mysql> select 1*f from t; | |
+---------+ | |
| 1*f | | |
+---------+ | |
| 999999 | | |
| 1000000 | | |
| 1000001 | | |
+---------+ | |
3 rows in set (0.00 sec) | |
mysql> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment